Staging: rtl8188eu: rtl8188e_rxdesc: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 19 Mar 2016 10:48:47 +0000 (16:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
Use !x instead of x == NULL.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c

index 4ac6bcf9dada085f0b47ce80e94bf3c5b18531e0..f110c961df70c018c74f5ed39daa8d8d6a35b23c 100644 (file)
@@ -40,7 +40,7 @@ static void process_link_qual(struct adapter *padapter,
        struct rx_pkt_attrib *pattrib;
        struct signal_stat *signal_stat;
 
-       if (prframe == NULL || padapter == NULL)
+       if (!prframe || !padapter)
                return;
 
        pattrib = &prframe->attrib;