staging: rtl8723bs: add braces to resolve checkpatch
PATCH 1/1 staging: rtl8723bs: add braces to resolve checkpatch
Resolved checkpatch finding by adding braces as shown in styleguide.
Signed-off-by Dalvin-Ehinoma Noah Aiguobas <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_ieee80211.c +8 -4
@@ -472,8 +472,9 @@ int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwis pos +=WPA_SELECTOR_LEN ; left -=WPA_SELECTOR_LEN ; - }else if (left >0 ) + }else if (left >0 ) {return _FAIL; + }/* pairwise_cipher */ if (left >=2 ) {
@@ -492,8 +493,9 @@ int rtw_parse_wpa_ie(u8 *wpa_ie, int wpa_ie_len, int *group_cipher, int *pairwis left -=WPA_SELECTOR_LEN ; } - }else if (left ==1 ) + }else if (left ==1 ) {return _FAIL; + }if (is_8021x) {if (left >=6 ) {
@@ -532,8 +534,9 @@ int rtw_parse_wpa2_ie(u8 *rsn_ie, int rsn_ie_len, int *group_cipher, int *pairwi pos +=RSN_SELECTOR_LEN ; left -=RSN_SELECTOR_LEN ; - }else if (left >0 ) + }else if (left >0 ) {return _FAIL; + }/* pairwise_cipher */ if (left >=2 ) {
@@ -552,8 +555,9 @@ int rtw_parse_wpa2_ie(u8 *rsn_ie, int rsn_ie_len, int *group_cipher, int *pairwi left -=RSN_SELECTOR_LEN ; } - }else if (left ==1 ) + }else if (left ==1 ) {return _FAIL; + }if (is_8021x) {if (left >=6 ) {
Signature · 1 line
2.54.0
Quoted 4 lines · Dalvin-Ehinoma Noah Aiguobas
Resolved checkpatch finding by adding braces as shown in styleguide.
Signed-off-by Dalvin-Ehinoma Noah Aiguobas <[email protected]>---
The patch notes should describe what the patch does, not the tool used to find the issue.
Thanks,
ET