From: Sandhya Bankar Date: Sat, 17 Sep 2016 22:48:22 +0000 (+0530) Subject: Staging: rtl8192e: Use !x instead of x == NULL X-Git-Tag: v4.9-rc1~119^2~510 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6869a11bff1df102dc73296129d63b9187a22f3a;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c index f4f318abb299..9d5788e04dd5 100644 --- a/drivers/staging/rtl8192e/rtllib_module.c +++ b/drivers/staging/rtl8192e/rtllib_module.c @@ -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);