diff options
author | Sandhya Bankar <bankarsandhya512@gmail.com> | 2016-09-18 04:18:22 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-18 12:37:43 +0200 |
commit | 6869a11bff1df102dc73296129d63b9187a22f3a (patch) | |
tree | 3c9f82031b893b3933fcb5cc522ac0d17aa1aff6 /drivers/staging/rtl8192e | |
parent | 56487aed9597569f5db716c86f9bc93aea1bd3b6 (diff) | |
download | linux-6869a11bff1df102dc73296129d63b9187a22f3a.tar.gz linux-6869a11bff1df102dc73296129d63b9187a22f3a.tar.bz2 linux-6869a11bff1df102dc73296129d63b9187a22f3a.zip |
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>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/rtllib_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |