mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
43e02454d7
commit
2e48f0df5c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue