Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753572AbcCBIIa (ORCPT ); Wed, 2 Mar 2016 03:08:30 -0500 Received: from mail-lb0-f193.google.com ([209.85.217.193]:33089 "EHLO mail-lb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbcCBII1 (ORCPT ); Wed, 2 Mar 2016 03:08:27 -0500 Date: Wed, 2 Mar 2016 15:04:57 +0700 From: Ivan Safonov To: Greg Kroah-Hartman Cc: Andrzej Pietrasiewicz , Supriya Karanth , Ivan Safonov , Anish Bhatt , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/10] staging: rtl8188eu: replace (a == NULL) to (!a) in rtw_drv_init Message-ID: <20160302080457.GA26825@alpha.sfu-kras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 31 It is a checkpatch cleanups: CHECK: Comparasion to NULL could be written ... Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 4 ++-- 1 file 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 2147e5a..31f463a 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; } -- 2.4.10