staging: rtl8723bs: hal: sdio_ops: fix Comparison to NULL
PATCH 1/3 staging: rtl8723bs: hal: sdio_ops: fix Comparison to NULL
this patch fixes below warning reported by checkpatch
CHECK: Comparison to NULL could be written "c2h_evt"
Signed-off-by Hariprasad Kelam <[email protected]>
--- drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/sdio_ops.c +1 -1
@@ -1058,7 +1058,7 @@ void sd_int_dpc(struct adapter *adapter)DBG_8192C ("%s: C2H Command\n" , __func__); c2h_evt =rtw_zmalloc (16 ); -if (c2h_evt !=NULL ) { +if (c2h_evt) {if (rtw_hal_c2h_evt_read (adapter, (u8 *)c2h_evt) == _SUCCESS) {if (c2h_id_filter_ccx_8723b ((u8 *)c2h_evt)) {/* Handle CCX report here */
Signature · 1 line
2.7.4