staging: rtl8723bs: hal: Remove comparison to NULL in rtl8723b_rxdesc.c
authorHimadri Pandya <himadri18.07@gmail.com>
Sun, 17 Mar 2019 06:14:51 +0000 (11:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:06:07 +0000 (07:06 +0100)
Remove comparison to null in file rtl8723b_rxdesc.c. Suggested by Coccinelle.

Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_rxdesc.c

index 76c8e6e9e6bcaf85570fc6860e0c95d68df111c6..86512264e2803960fc99a4531234c98b494ad56c 100644 (file)
@@ -34,7 +34,7 @@ static void process_link_qual(struct adapter *padapter, union recv_frame *prfram
        struct rx_pkt_attrib *pattrib;
        struct signal_stat *signal_stat;
 
-       if (prframe == NULL || padapter == NULL)
+       if (!prframe || !padapter)
                return;
 
        pattrib = &prframe->u.hdr.attrib;