Staging: rtl8192e: Use !x instead of x == NULL
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 17 Sep 2016 22:48:22 +0000 (04:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Sep 2016 10:37:43 +0000 (12: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/rtl8192e/rtllib_module.c

index f4f318a..9d5788e 100644 (file)
@@ -138,7 +138,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
        rtllib_softmac_init(ieee);
 
        ieee->pHTInfo = kzalloc(sizeof(struct rt_hi_throughput), GFP_KERNEL);
-       if (ieee->pHTInfo == NULL)
+       if (!ieee->pHTInfo)
                return NULL;
 
        HTUpdateDefaultSetting(ieee);