staging: rtl8723bs: hal: rtl8723b_hal_init: fix Comparison to NULL
This patch tries to fix below issues reported by checkpatch CHECK: Comparison to NULL could be written "!efuseTbl" CHECK: Comparison to NULL could be written "!psta" Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5d8c5c684a
commit
02ca9aa025
@ -1023,7 +1023,7 @@ static void hal_ReadEFuse_BT(
|
|||||||
}
|
}
|
||||||
|
|
||||||
efuseTbl = rtw_malloc(EFUSE_BT_MAP_LEN);
|
efuseTbl = rtw_malloc(EFUSE_BT_MAP_LEN);
|
||||||
if (efuseTbl == NULL) {
|
if (!efuseTbl) {
|
||||||
DBG_8192C("%s: efuseTbl malloc fail!\n", __func__);
|
DBG_8192C("%s: efuseTbl malloc fail!\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2139,7 +2139,7 @@ static void UpdateHalRAMask8723B(struct adapter *padapter, u32 mac_id, u8 rssi_l
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
psta = pmlmeinfo->FW_sta_info[mac_id].psta;
|
psta = pmlmeinfo->FW_sta_info[mac_id].psta;
|
||||||
if (psta == NULL)
|
if (!psta)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
shortGIrate = query_ra_short_GI(psta);
|
shortGIrate = query_ra_short_GI(psta);
|
||||||
|
Reference in New Issue
Block a user