staging: rtl8723bs: Clean up unnecessary parentheses and braces
PATCH v2 1/1 staging: rtl8723bs: Clean up unnecessary parentheses and braces
Increase code readability and follow Linux kernel coding style by removing unnecessary parentheses and braces.
This also fixes the following checkpatch.pl issues:
WARNING: Unnecessary parentheses - maybe == should be = ?
WARNING: braces {} are not necessary for any arm of this statement
--- drivers/staging/rtl8723bs/core/rtw_recv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_recv.c +3 -4
@@ -1339,11 +1339,10 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f } -if (ret == _FAIL) { +if (ret == _FAIL) goto exit; - }else if (ret ==RTW_RX_HANDLED ) { +else if (ret ==RTW_RX_HANDLED ) goto exit; - }if (!psta) {
@@ -1593,7 +1592,7 @@ static signed int wlanhdr_to_ethhdr(union recv_frame *precvframe) eth_type =ntohs (be_tmp);/* pattrib->ether_type */ pattrib->eth_type = eth_type; -if ((check_fwstate (pmlmepriv,WIFI_MP_STATE ) == true)) { +if (check_fwstate (pmlmepriv,WIFI_MP_STATE ) == true) { ptr += rmv_len; *ptr =0x87 ; *(ptr +1 ) =0x12 ;
Signature · 1 line
2.43.0
Greg KH
maintainerQuoted 42 lines · Eduard Bostina
Increase code readability and follow Linux kernel coding style by removing unnecessary parentheses and braces.
This also fixes the following checkpatch.pl issues:
WARNING: Unnecessary parentheses - maybe == should be = ?
WARNING: braces {} are not necessary for any arm of this statementSigned-off-by Eduard Bostina <[email protected]>--- drivers/staging/rtl8723bs/core/rtw_recv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/staging/rtl8723bs/core/rtw_recv.c +3
-4@@ -1339,11 +1339,10 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f } -if (ret == _FAIL) { +if (ret == _FAIL) goto exit; - }else if (ret ==RTW_RX_HANDLED ) { +else if (ret ==RTW_RX_HANDLED ) goto exit; - }if (!psta) {@@ -1593,7 +1592,7 @@ static signed int wlanhdr_to_ethhdr(union recv_frame *precvframe) eth_type =ntohs (be_tmp);/* pattrib->ether_type */ pattrib->eth_type = eth_type; -if ((check_fwstate (pmlmepriv,WIFI_MP_STATE ) == true)) { +if (check_fwstate (pmlmepriv,WIFI_MP_STATE ) == true) { ptr += rmv_len; *ptr =0x87 ; *(ptr +1 ) =0x12 ;Signature · 1 line
2.43.0
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot
Quoted 9 lines · Eduard Bostina
Increase code readability and follow Linux kernel coding style by removing unnecessary parentheses and braces.
This also fixes the following checkpatch.pl issues:
WARNING: Unnecessary parentheses - maybe == should be = ?
WARNING: braces {} are not necessary for any arm of this statementSigned-off-by Eduard Bostina <[email protected]>
Hi Eduard, This looks good to me!
As for the v2 in the subject, you should always start fresh
when sending a patch to the community no matter on how many reviews we did in private.
Community is not aware of that and having [PATCH v2] is confusing.
Greg,
Should Eduard send the patch again and remove v2? Or is this patch still fine.