Staging: rtl8723au: core: Add space after '&'
PATCH 1/1 Staging: rtl8723au: core: Add space after '&'
This Error found checkpatch.pl
ERROR: need consistent spacing around '&'
Signed-off-by Hatice ERTURK <[email protected]>
--- drivers/staging/rtl8723au/core/rtw_xmit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8723au/core/rtw_xmit.c +5 -5
@@ -255,7 +255,7 @@ static void update_attrib_vcs_info(struct rtw_adapter *padapter, struct xmit_frareturn ; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return ; }
@@ -661,7 +661,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,return _FAIL; } -if (!(stainfo->state &_FW_LINKED)) { +if (!(stainfo->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, stainfo->state);return _FAIL;
@@ -874,7 +874,7 @@ static int rtw_make_wlanhdr(struct rtw_adapter *padapter, u8 *hdr,return _FAIL; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return _FAIL; }
@@ -1012,7 +1012,7 @@ s32 rtw_txframes_sta_ac_pending23a(struct rtw_adapter *padapter,DBG_8723A ("%s, psta == NUL\n" , __func__);return 0 ; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return 0 ;
@@ -1098,7 +1098,7 @@ int rtw_xmitframe_coalesce23a(struct rtw_adapter *padapter, struct sk_buff *skb,return _FAIL; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return _FAIL;
Signature · 1 line
1.9.1
Quoted 8 lines · Hatice ERTÜRK
This Error found checkpatch.pl
ERROR: need consistent spacing around '&'
Signed-off-by Hatice ERTURK <[email protected]>--- drivers/staging/rtl8723au/core/rtw_xmit.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Patch is good, but I would like a better commit message. Something like " Insert missing space after '&' to improve readability.
"
Then put the checkpatch reference after this.
Cheers,
Jes
Quoted 50 lines
drivers/staging/rtl8723au/core/rtw_xmit.c +5
-5@@ -255,7 +255,7 @@ static void update_attrib_vcs_info(struct rtw_adapter *padapter, struct xmit_frareturn ; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return ; }@@ -661,7 +661,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,return _FAIL; } -if (!(stainfo->state &_FW_LINKED)) { +if (!(stainfo->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, stainfo->state);return _FAIL;@@ -874,7 +874,7 @@ static int rtw_make_wlanhdr(struct rtw_adapter *padapter, u8 *hdr,return _FAIL; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return _FAIL; }@@ -1012,7 +1012,7 @@ s32 rtw_txframes_sta_ac_pending23a(struct rtw_adapter *padapter,DBG_8723A ("%s, psta == NUL\n" , __func__);return 0 ; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return 0 ;@@ -1098,7 +1098,7 @@ int rtw_xmitframe_coalesce23a(struct rtw_adapter *padapter, struct sk_buff *skb,return _FAIL; } -if (!(psta->state &_FW_LINKED)) { +if (!(psta->state & _FW_LINKED)) {DBG_8723A ("%s, psta->state(0x%x) != _FW_LINKED\n" , __func__, psta->state);return _FAIL;