summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712/hal_init.c
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-07 08:28:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-08 12:25:32 +0300
commit8d2884ace7919eadcc220934052ba65baae986e2 (patch)
tree53ba247a3d8a2da9113bbf39130f8e246a869518 /drivers/staging/rtl8712/hal_init.c
parent2a1283606f5f83f975f4f1abb34242004110f959 (diff)
downloadlinux-8d2884ace7919eadcc220934052ba65baae986e2.tar.xz
staging: rtl8712: Remove NULL comparison
Remove NULL comparison by using '!' operator. Problem found using checkpatch.pl CHECK: Comparison to NULL could be written "!padapter->halpriv.hal_bus_init" Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/hal_init.c')
-rw-r--r--drivers/staging/rtl8712/hal_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c
index db0c1de8dc25..15c6160fc32a 100644
--- a/drivers/staging/rtl8712/hal_init.c
+++ b/drivers/staging/rtl8712/hal_init.c
@@ -382,7 +382,7 @@ uint rtl8712_hal_deinit(struct _adapter *padapter)
uint rtl871x_hal_init(struct _adapter *padapter)
{
padapter->hw_init_completed = false;
- if (padapter->halpriv.hal_bus_init == NULL)
+ if (!padapter->halpriv.hal_bus_init)
return _FAIL;
if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS)
return _FAIL;