staging: rtl8723bs: hal: fix Using comparison to false is error prone
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 16 Jun 2019 02:54:31 +0000 (08:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:59:41 +0000 (08:59 +0200)
fix below issue reported by checkpatch

CHECK: Using comparison to false is error prone

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c

index 07bee19c3b3d3764a6a35c25513b6daf83638837..e23b39ab16c50eafbef213e94eaab916573cb9ff 100644 (file)
@@ -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); */