diff options
author | Ivan Safonov <insafonov@gmail.com> | 2016-03-02 15:04:57 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 2e48f0df5cc793bccdde66b32e6a4fd134da534d (patch) | |
tree | 97268b75b4619b367d75b4354adc3850a1832c72 /drivers/staging | |
parent | 43e02454d787b074a6864b5524a663c854a2d314 (diff) | |
download | op-kernel-dev-2e48f0df5cc793bccdde66b32e6a4fd134da534d.zip op-kernel-dev-2e48f0df5cc793bccdde66b32e6a4fd134da534d.tar.gz |
staging: rtl8188eu: replace (a == NULL) to (!a) in rtw_drv_init
It is a checkpatch cleanups:
CHECK: Comparasion to NULL could be written ...
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index 5c63fb6..96b0175 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -484,14 +484,14 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device /* Initialize dvobj_priv */ dvobj = usb_dvobj_init(pusb_intf); - if (dvobj == NULL) { + if (!dvobj) { RT_TRACE(_module_hci_intfs_c_, _drv_err_, ("initialize device object priv Failed!\n")); goto exit; } if1 = rtw_usb_if1_init(dvobj, pusb_intf, pdid); - if (if1 == NULL) { + if (!if1) { pr_debug("rtw_init_primarystruct adapter Failed!\n"); goto free_dvobj; } |