Skip to contentSkip to conversation

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

PATCH Superseded Sandhya Bankar 1 participant 1 message Sep 17, 2016 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8192e: Use !x instead of x == NULL

Use !x instead of x == NULL. This patch was found by checkpatch.

---
 drivers/staging/rtl8192e/rtllib_module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/rtl8192e/rtllib_module.c +1 -1
index f4f318a..9d5788e 100755
@@ -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);
Signature · 1 line
1.7.1