You need to sign in or sign up before continuing.
提交 05ccc706 编写于 作者: M Michael Straube 提交者: Greg Kroah-Hartman

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: NMichael Straube <straube.linux@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 6d2b0f7b
...@@ -747,7 +747,7 @@ u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) ...@@ -747,7 +747,7 @@ u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen)
u8 match = false; u8 match = false;
u8 eid, wps_oui[4] = {0x0, 0x50, 0xf2, 0x04}; u8 eid, wps_oui[4] = {0x0, 0x50, 0xf2, 0x04};
if (ie_ptr == NULL) if (!ie_ptr)
return match; return match;
eid = ie_ptr[0]; eid = ie_ptr[0];
...@@ -1163,7 +1163,7 @@ void rtw_macaddr_cfg(struct device *dev, u8 *mac_addr) ...@@ -1163,7 +1163,7 @@ void rtw_macaddr_cfg(struct device *dev, u8 *mac_addr)
const unsigned char *addr; const unsigned char *addr;
int len; int len;
if (mac_addr == NULL) if (!mac_addr)
return; return;
if (rtw_initmac) { /* Users specify the mac address */ if (rtw_initmac) { /* Users specify the mac address */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册