Staging: rtl8712: rtl8712_efuse: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Tue, 20 Sep 2016 09:01:50 +0000 (14:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:37:59 +0000 (13:37 +0200)
Use !x instead of x == NULL. This patch was found by checkpatch.

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

index 76f60ba5ee9b2bf297f0dcffadccb753810dd11b..205298e236562b5e3cf9b7ea1e1dc501dfa4c950 100644 (file)
@@ -248,7 +248,7 @@ u8 r8712_efuse_pg_packet_read(struct _adapter *padapter, u8 offset, u8 *data)
        u8 tmpdata[PGPKT_DATA_SIZE];
        u8 ret = true;
 
-       if (data == NULL)
+       if (!data)
                return false;
        if (offset > 0x0f)
                return false;