staging: rtl8723bs: fix code style comparison warning
PATCH v3 1/1 staging: rtl8723bs: fix code style comparison warning
checkpatch gives the following WARNING:
WARNING: Comparisons should place the constant on the right side of the test this patch fixes the coding style warning.
Signed-off-by Kurt Manucredo <[email protected]>
---
changes since previous version:
- put version chatter below the --- cut off line.
thank you very much for your help Mr. Dan Carpenter.
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)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
Quoted 8 lines · Kurt Manucredo
checkpatch gives the following WARNING:
WARNING: Comparisons should place the constant on the right side of the test this patch fixes the coding style warning.Signed-off-by Kurt Manucredo <[email protected]>---
Looks okay to me. Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter