fix comparisons - put constant on right side- eudyptula
PATCH 1/1 fix comparisons - put constant on right side- eudyptula
Dear linux kernel developers,
for my eudyptula challenge it is required of me to fix a coding style issue in the staging area in linux-next. I am aware that it is in general frowned upon when submitting these sorts of patches. However, to finish my 10th challenge I was tasked to do exactly that. So I ask you kindly to pull this patch if possible.
Thank you for your time,
kind regards
PATCH 1/1 fix comparisons - put constant on right side- eudyptula challenge 10
--- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +1 -1
@@ -2146,7 +2146,7 @@ void rtw_get_sec_iv(struct adapter *padapter, u8 *pcur_dot11txpn, u8 *StaAddr)struct security_priv *psecpriv = &padapter->securitypriv;memset (pcur_dot11txpn,0 ,8 ); -if (NULL == StaAddr) +if (StaAddr ==NULL )return ; psta =rtw_get_stainfo (&padapter->stapriv, StaAddr); DBG_871X("%s(): StaAddr: %02x %02x %02x %02x %02x %02x\n",
Signature · 1 line
2.20.1
Re: [PATCH] fix comparisons - put constant on right side- eudyptula challenge 10
Fix the subject. Don't mention eudyptula.
[PATCH] Staging: rtl8723bs: put constant on right side of comparison
Add a commit message:
Checkpatch complains that the constant needs to be on the right hand side of the comparion.
Quoted 10 lines · Kurt Manucredo
Signed-off-by Kurt Manucredo <[email protected]>--- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8723bs/core/rtw_wlan_util.c +0
-0
drivers/staging/rtl8723bs/core/rtw_wlan_util.c void rtw_get_sec_iv(struct adapter *padapter, u8 *pcur_dot11txpn, u8 *StaAddr) · line 2149
Quoted 5 lines
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +1
-1@@ -2146,7 +2146,7 @@ void rtw_get_sec_iv(struct adapter *padapter, u8 *pcur_dot11txpn, u8 *StaAddr)struct security_priv *psecpriv = &padapter->securitypriv;memset (pcur_dot11txpn,0 ,8 ); -if (NULL == StaAddr) +if (StaAddr ==NULL )
The prefered format for this is actually:
if (!StaAddr) return;
regards,
dan carpenter
Quoted 10 lines · Kurt Manucredo
Dear linux kernel developers,
for my eudyptula challenge it is required of me to fix a coding style issue in the staging area in linux-next. I am aware that it is in general frowned upon when submitting these sorts of patches. However, to finish my 10th challenge I was tasked to do exactly that. So I ask you kindly to pull this patch if possible.
Thank you for your time,
These patches are fine in staging.
regards,
dan carpenter