Commit 019acabe authored by Himadri Pandya's avatar Himadri Pandya Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: Remove comparison to NULL in rtl8723b_hal_init.c

Remove comparison to NULL in file rtl8723b_hal_init.c. Suggested by
Coccinelle.
Signed-off-by: default avatarHimadri Pandya <himadri18.07@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7f91d886
...@@ -883,7 +883,7 @@ static void hal_ReadEFuse_WiFi( ...@@ -883,7 +883,7 @@ static void hal_ReadEFuse_WiFi(
} }
efuseTbl = rtw_malloc(EFUSE_MAX_MAP_LEN); efuseTbl = rtw_malloc(EFUSE_MAX_MAP_LEN);
if (efuseTbl == NULL) { if (!efuseTbl) {
DBG_8192C("%s: alloc efuseTbl fail!\n", __func__); DBG_8192C("%s: alloc efuseTbl fail!\n", __func__);
return; return;
} }
...@@ -1463,7 +1463,7 @@ static s32 Hal_EfusePgPacketRead( ...@@ -1463,7 +1463,7 @@ static s32 Hal_EfusePgPacketRead(
s32 ret; s32 ret;
if (data == NULL) if (!data)
return false; return false;
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAX_SECTION, &max_section, bPseudoTest); EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAX_SECTION, &max_section, bPseudoTest);
...@@ -3664,7 +3664,7 @@ s32 c2h_handler_8723b(struct adapter *padapter, u8 *buf) ...@@ -3664,7 +3664,7 @@ s32 c2h_handler_8723b(struct adapter *padapter, u8 *buf)
s32 ret = _SUCCESS; s32 ret = _SUCCESS;
u8 index = 0; u8 index = 0;
if (pC2hEvent == NULL) { if (!pC2hEvent) {
DBG_8192C("%s(): pC2hEventis NULL\n", __func__); DBG_8192C("%s(): pC2hEventis NULL\n", __func__);
ret = _FAIL; ret = _FAIL;
goto exit; goto exit;
...@@ -3714,7 +3714,7 @@ static void process_c2h_event(struct adapter *padapter, PC2H_EVT_HDR pC2hEvent, ...@@ -3714,7 +3714,7 @@ static void process_c2h_event(struct adapter *padapter, PC2H_EVT_HDR pC2hEvent,
{ {
u8 index = 0; u8 index = 0;
if (c2hBuf == NULL) { if (!c2hBuf) {
DBG_8192C("%s c2hbuff is NULL\n", __func__); DBG_8192C("%s c2hbuff is NULL\n", __func__);
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment