Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4724879ybi; Tue, 11 Jun 2019 11:22:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqx26yybBmErzA1sKKtvN78qi3RjOCknWXqsqu4SpuIzGXn84kPDA7HksoBVnjydasjitlJi X-Received: by 2002:a17:902:b093:: with SMTP id p19mr41772572plr.174.1560277350931; Tue, 11 Jun 2019 11:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560277350; cv=none; d=google.com; s=arc-20160816; b=VUcMoFWlNin9UIu+vuuAGKcFSwM2Cg1w1wF/20FuzJbtc1gtUt0xwGxiVxykOsAyI9 75t6CV73QXWIPBcSdMx6VZXhpZlSL/wk6n3VV0Cj07W7ohqzXGpi5TAGvvPfLBDicxNV CbcSVmx2VX0WzSWDXQTM2bkE0K5BUtZeBprj20F2G88k9/7Cw9sewqVcP9Bmk0hBzeY8 61h+e/68w4xuKQ4VCILSx1YEeiVtOik8UE661aHZDEwJhAQaVVxgb+PMod4q4VkW5iqM tVxw9yMQckIBadfLzqY/sTmlVxTfNwClqnqWMZ+b1qO5Hy2IROSBdP2aqnKLJ3BtWro4 XZFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=M6/ZPn8xIOzr0YIkcM1HqW+DDeE+OQYEaIUibkKZb5s=; b=Kl62qjuhQsqwjlSTc0QP+50wBzjMgpZHEBBf0yE+hK7qs8/oOJD/aOxatcin1EUwfH g7YwJJzHA1TC+BgZBK/HcJP6AkcUqvpF7JsGDsxNhApxhoKdwSl9O8VRHvP8y55Q5t9b Xj6aNJQuL/BnBtznhxPp3yNGfJjSDJpc5mMFap+2jXP5eWDtHDW+S+c+1irF20QEllze Rt6nmoYmlJ8wvgc1VT+X8RxCcoOEsD/Kjcy7VH+omcit+znDhDRdc3Ar5w6f1mbf3DMa bnvl9DxEVsUFnos+rUANi89DAeYTjTbczrQbcHc83Gtif4PTP/0/MbPlNtEiI3jyMzVV B2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e4o0MlAU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc1si12702329plb.55.2019.06.11.11.22.14; Tue, 11 Jun 2019 11:22:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e4o0MlAU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407012AbfFKSVt (ORCPT + 99 others); Tue, 11 Jun 2019 14:21:49 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:45625 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405802AbfFKSVt (ORCPT ); Tue, 11 Jun 2019 14:21:49 -0400 Received: by mail-pg1-f195.google.com with SMTP id w34so7405610pga.12 for ; Tue, 11 Jun 2019 11:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=M6/ZPn8xIOzr0YIkcM1HqW+DDeE+OQYEaIUibkKZb5s=; b=e4o0MlAUmqo37Ha3paSip6SEW9qNLCaZI+xuZiXxDPjpul+YJjuMC5MIjCp17gwJRS 4XChw0YtPxCwoGSnW7Xd0VP8QdqaBpIfUv8rjM08wmSRbmOGDeSQz6kU1TnWreNk3Vm6 1dMgiuA8yYUcKSvq80IL1riHSqxH5CW6toOUjPaBM9gf9rO+WViDcsGQPzwUq99niD6Y M4PTDUxDJ3rcFRB+B/K0v+vHPF6A5HIL3DEWtTG0NKx44UbyVoieDDvIKlCfSGp8EUMf vtkevDWL+ytKh8B5xyBr5DlWHq5UaDKxBtSP0IrgLFFFSRheHUf18reUzkaB5/GBrPPN XU9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=M6/ZPn8xIOzr0YIkcM1HqW+DDeE+OQYEaIUibkKZb5s=; b=r7QKiqrc3dJT9ZH1Jiv2s13/hsxVa0a9rFQMtX5ZkrnAl6ZTYNZkjSnorjX0agJNQ8 e5Y/S2Q+341NArrrTvaDP6P7QokhJcmpG2pJs4+EJWmHp0iB+tcjZCHvVM5D7W20orja JHOREHBJZGVNXiFN/6E1rneDCy5wzSD1J0CrBdj0kdnmGxJCfsonIv+nXAuTl1XotCZb QE+P3CEKSAOXEtuXyuDMM/0ENEAulkjDV+CHf7CC9XuN/PtQn7dsGrBzJrQwJftsNZws V1OLIclzilD6u5k1nADzcLOt8g0XiP9G2SUlFSitw3VJ+ylhnJGkckGzvfV4i43zKWLL HEcg== X-Gm-Message-State: APjAAAXqbbjKhu4JExj66eF4+wbsCEvDhMUYpiqRjRQlF5+Vsm6NZz4s vE/X/04U6LASZ8icvAkCA2A= X-Received: by 2002:a63:f70b:: with SMTP id x11mr21904632pgh.212.1560277308535; Tue, 11 Jun 2019 11:21:48 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id o11sm2780547pjp.31.2019.06.11.11.21.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 11:21:47 -0700 (PDT) Date: Tue, 11 Jun 2019 23:51:42 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Nishka Dasgupta , Arnd Bergmann , Madhumitha Prabakaran , Colin Ian King , Payal Kshirsagar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] staging: rtl8723bs: hal: sdio_ops: fix Comparison to NULL Message-ID: <20190611182142.GA7164@hari-Inspiron-1545> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org this patch fixes below warning reported by checkpatch CHECK: Comparison to NULL could be written "c2h_evt" Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c index ac79de8..baeffbb 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_ops.c +++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c @@ -1058,7 +1058,7 @@ void sd_int_dpc(struct adapter *adapter) DBG_8192C("%s: C2H Command\n", __func__); c2h_evt = rtw_zmalloc(16); - if (c2h_evt != NULL) { + if (c2h_evt) { if (rtw_hal_c2h_evt_read(adapter, (u8 *)c2h_evt) == _SUCCESS) { if (c2h_id_filter_ccx_8723b((u8 *)c2h_evt)) { /* Handle CCX report here */ -- 2.7.4