Skip to contentSkip to conversation

Staging: rtl8188eu: core: rtw_ap.c: Fix multiple blank lines

PATCH Superseded Sanjana Sanikommu 3 participants 4 messages Mar 17, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: core: rtw_ap.c: Fix multiple blank lines

Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results for rtw_ap.c

CHECK: Please dont use multiple blank lines.

---
 drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -3
index fc500da2d71f..fa3ba5643629 100644
@@ -367,10 +367,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 		sta_band |= WIRELESS_11G | WIRELESS_11B;
 	else
 		sta_band |= WIRELESS_11B;
-
-
 	psta->wireless_mode = sta_band;
-
 	raid = networktype_to_raid(sta_band);
 	init_rate = get_highest_rate_idx(tx_ra_bitmap & 0x0fffffff) & 0x3f;
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 15 lines · Sanjana Sanikommu

Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results for rtw_ap.c

CHECK: Please dont use multiple blank lines.

---
 drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -0
index fc500da2d71f..fa3ba5643629 100644

drivers/staging/rtl8188eu/core/rtw_ap.c void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level) · line 371

Quoted 5 lines
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -2
@@ -367,10 +367,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 		sta_band |= WIRELESS_11G | WIRELESS_11B;
 	else
 		sta_band |= WIRELESS_11B;
-
-

The warning is only complaining about multiple contiguous blank lines. So only one of the above lines should be removed and the one below is fine as is.

julia

Quoted 15 lines
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -2
 	psta->wireless_mode = sta_band;
-
 	raid = networktype_to_raid(sta_band);
 	init_rate = get_highest_rate_idx(tx_ra_bitmap & 0x0fffffff) & 0x3f;
 
--

2.17.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190317120729.4811-1-sanjana99reddy99%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

maintainer
#2 lore raw
In reply to Sanjana Sanikommu
Quoted 15 lines · Sanjana Sanikommu

Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results for rtw_ap.c

CHECK: Please dont use multiple blank lines.

---
 drivers/staging/rtl8188eu/core/rtw_ap.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -0
index fc500da2d71f..fa3ba5643629 100644

drivers/staging/rtl8188eu/core/rtw_ap.c void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level) · line 371

Quoted 8 lines
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -3
@@ -367,10 +367,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 		sta_band |= WIRELESS_11G | WIRELESS_11B;
 	else
 		sta_band |= WIRELESS_11B;
-
-
 	psta->wireless_mode = sta_band;
-
 	raid = networktype_to_raid(sta_band);

That last blank line you removed was not a "multiple blank line", why remove it?

And why remove both blank lines, only one should be dropped, right?

thanks,

greg k-h

#3 lore raw

PATCH v2 1/1 Staging: rtl8188eu: core: rtw_ap.c: Fix multiple blank lines

In reply to Sanjana Sanikommu

Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results for rtw_ap.c

CHECK: Please dont use multiple blank lines.

---
Changes in v2:
Remove only one blank line.

 drivers/staging/rtl8188eu/core/rtw_ap.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_ap.c +0 -1
index fc500da2d71f..c360856a86ec 100644
@@ -368,7 +368,6 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
 	else
 		sta_band |= WIRELESS_11B;
 
-
 	psta->wireless_mode = sta_band;
 
 	raid = networktype_to_raid(sta_band);
Signature · 1 line
2.17.1