summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Straube <straube.linux@gmail.com>2018-06-27 19:36:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 22:46:01 +0900
commit05ccc7061a3b2f11ac0a6c4d9528b4ca62acc139 (patch)
treeb2b77220fc71055acbed5aba4c5a6be98f7daf3d /drivers
parent6d2b0f7b9c1e8028f9a3efb99f539cb2f6d3d669 (diff)
downloadlinux-stable-05ccc7061a3b2f11ac0a6c4d9528b4ca62acc139.tar.gz
linux-stable-05ccc7061a3b2f11ac0a6c4d9528b4ca62acc139.tar.bz2
linux-stable-05ccc7061a3b2f11ac0a6c4d9528b4ca62acc139.zip
staging: rtl8723bs: fix comparsion to NULL - coding style
Fix comparsion to NULL issues found by checkpatch. Use !x instead of x == NULL. Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_ieee80211.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index 0822e440204e..e55895632921 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -747,7 +747,7 @@ u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen)
u8 match = false;
u8 eid, wps_oui[4] = {0x0, 0x50, 0xf2, 0x04};
- if (ie_ptr == NULL)
+ if (!ie_ptr)
return match;
eid = ie_ptr[0];
@@ -1163,7 +1163,7 @@ void rtw_macaddr_cfg(struct device *dev, u8 *mac_addr)
const unsigned char *addr;
int len;
- if (mac_addr == NULL)
+ if (!mac_addr)
return;
if (rtw_initmac) { /* Users specify the mac address */