Staging: rtl8188eu: core: rtw_ap.c: Fix multiple blank lines
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
@@ -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
Quoted 15 lines · Sanjana Sanikommu
Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results forrtw_ap.cCHECK: Please dont use multiple blank lines.
Signed-off-by Sanjana Sanikommu <[email protected]>--- drivers/staging/rtl8188eu/core/rtw_ap.c | 3 --- 1 file changed, 3 deletions(-)drivers/staging/rtl8188eu/core/rtw_ap.c +0
-0
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
-2psta->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.
Greg KH
maintainerQuoted 15 lines · Sanjana Sanikommu
Remove multiple blank lines.
Issue found by checkpatch.pl semantic patch results forrtw_ap.cCHECK: Please dont use multiple blank lines.
Signed-off-by Sanjana Sanikommu <[email protected]>--- drivers/staging/rtl8188eu/core/rtw_ap.c | 3 --- 1 file changed, 3 deletions(-)drivers/staging/rtl8188eu/core/rtw_ap.c +0
-0
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
PATCH v2 1/1 Staging: rtl8188eu: core: rtw_ap.c: Fix multiple blank lines
In reply to Sanjana SanikommuRemove 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
@@ -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