Staging: rtl8192e: Use !x instead of x == NULL
PATCH v2 1/1 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 <[email protected]>
---
Changes in v2:
* Correcting file permission issue
drivers/staging/rtl8192e/rtllib_module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/rtl8192e/rtllib_module.c +1 -1
@@ -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