Commit 54b3de55 authored by Himadri Pandya's avatar Himadri Pandya Committed by Greg Kroah-Hartman

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

- Remove comparison to NULL in file hal_btcoex.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 0a6f6e93
...@@ -75,7 +75,7 @@ static BTCDBGINFO GLBtcDbgInfo; ...@@ -75,7 +75,7 @@ static BTCDBGINFO GLBtcDbgInfo;
static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size) static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size)
{ {
if (NULL == pinfo) if (!pinfo)
return; return;
memset(pinfo, 0, sizeof(BTCDBGINFO)); memset(pinfo, 0, sizeof(BTCDBGINFO));
...@@ -95,7 +95,7 @@ void DBG_BT_INFO(u8 *dbgmsg) ...@@ -95,7 +95,7 @@ void DBG_BT_INFO(u8 *dbgmsg)
pinfo = &GLBtcDbgInfo; pinfo = &GLBtcDbgInfo;
if (NULL == pinfo->info) if (!pinfo->info)
return; return;
msglen = strlen(dbgmsg); msglen = strlen(dbgmsg);
...@@ -112,8 +112,7 @@ void DBG_BT_INFO(u8 *dbgmsg) ...@@ -112,8 +112,7 @@ void DBG_BT_INFO(u8 *dbgmsg)
/* */ /* */
static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist) static u8 halbtcoutsrc_IsBtCoexistAvailable(PBTC_COEXIST pBtCoexist)
{ {
if (!pBtCoexist->bBinded || if (!pBtCoexist->bBinded || !pBtCoexist->Adapter){
NULL == pBtCoexist->Adapter){
return false; return false;
} }
return true; return true;
...@@ -1571,7 +1570,7 @@ void hal_btcoex_SetDBG(struct adapter *padapter, u32 *pDbgModule) ...@@ -1571,7 +1570,7 @@ void hal_btcoex_SetDBG(struct adapter *padapter, u32 *pDbgModule)
u32 i; u32 i;
if (NULL == pDbgModule) if (!pDbgModule)
return; return;
for (i = 0; i < BTC_MSG_MAX; i++) for (i = 0; i < BTC_MSG_MAX; i++)
...@@ -1585,7 +1584,7 @@ u32 hal_btcoex_GetDBG(struct adapter *padapter, u8 *pStrBuf, u32 bufSize) ...@@ -1585,7 +1584,7 @@ u32 hal_btcoex_GetDBG(struct adapter *padapter, u8 *pStrBuf, u32 bufSize)
u32 leftSize; u32 leftSize;
if ((NULL == pStrBuf) || (0 == bufSize)) if (!pStrBuf || (0 == bufSize))
return 0; return 0;
pstr = pStrBuf; pstr = pStrBuf;
......
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