Browse Source

Staging: rtl8192e: Use !x instead of x == NULL

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>
Sandhya Bankar 9 years ago
parent
commit
6869a11bff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/rtl8192e/rtllib_module.c

+ 1 - 1
drivers/staging/rtl8192e/rtllib_module.c

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