Skip to contentSkip to conversation

staging: rtl8723bs: hal: fix Using comparison to false is error prone

PATCH New Hariprasad Kelam 1 participant 1 message Jun 16, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 staging: rtl8723bs: hal: fix Using comparison to false is error prone

fix below issue reported by checkpatch

CHECK: Using comparison to false is error prone

---
changes in v2: break the patch for specific change
----

---
 drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c +1 -1
index 07bee19..e23b39a 100644
@@ -175,7 +175,7 @@ static void rtl8723bs_c2h_packet_handler(struct adapter *padapter,
 
 	res = rtw_c2h_packet_wk_cmd(padapter, tmp, length);
 
-	if (res == false)
+	if (!res)
 		kfree(tmp);
 
 	/* DBG_871X("-%s res(%d)\n", __func__, res); */
Signature · 1 line
2.7.4