Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp981586yba; Thu, 16 May 2019 12:06:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTHEFyTC4HJs2sxoHyRZqxNYzNUp27QUpALlByvFM6oeXFqBRZNtxHorP7piwH9jfh7r3f X-Received: by 2002:a17:902:3281:: with SMTP id z1mr51292363plb.44.1558033560132; Thu, 16 May 2019 12:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558033560; cv=none; d=google.com; s=arc-20160816; b=dHKHgaFrr8WcnFW5Ppb3xIwdEh6/6f3uiHqRCqYcxXw68MffXPGehexjjyIbSXvWsH J9sO2RLk7s3eLY2uasvSYPIVMTR2G2TOrBh0wHkjOGK/38mdgHhg7oVax8Bs4LPHH0u9 SqaHQUljVHb7+/s9AF56X+xozvjB6CYiHQUOmKH5DF+gtXXt4mW0NwmflJ1nucpCxQ8E ml8ruldkNokUcYKAn0IpRFCayHi1MMafSU4GmgbjcHfUVEEV18MSFS6IoLRudNmBACzp +DmUhnvuH7rA9ARJn56QHFxki+gf2gmcj4zOmwMsgULklA6FGgKMeMOeQC5qZaE/sWmb kWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=8D5391fetjU3ekpZDrWHFkxYRoxxpYevMJ+dYscZYgI=; b=YjwXAK56FXwNqDb4qSJFeoxyPAEWd7enw1h3go48HfB1esobQ/CiWtFMg1xQKlNHBJ POobmobgz5l249lHSSAnAHzz5XgZyNlkmQPBV2ajgKTmQbH9TToiod5h8FrrJRNMVk/6 Uf0rh/rwM/soypocvQFTMrUcVNYnKFe/EpPk24Myhkvv5S57DC44BPH3dLhXUNBfyou2 3zxAQ5jq+rg57Wup7EagEhxszk+08Qr+dK9iYuPmFj6RTYa2fqe8jPRx5s+h/ciAt6xM hxKeqm5po2CdWgOPtqHKb/EUe/QHdGijT4OymRPyV5QkzNMaLqIU0rMgsDejhdju9ukc ZBWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ilihGdHq; 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 z19si5229498pfa.260.2019.05.16.12.05.44; Thu, 16 May 2019 12:06:00 -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=ilihGdHq; 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 S1727338AbfEPSZp (ORCPT + 99 others); Thu, 16 May 2019 14:25:45 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46758 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbfEPSZo (ORCPT ); Thu, 16 May 2019 14:25:44 -0400 Received: by mail-pg1-f194.google.com with SMTP id t187so1943956pgb.13 for ; Thu, 16 May 2019 11:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8D5391fetjU3ekpZDrWHFkxYRoxxpYevMJ+dYscZYgI=; b=ilihGdHq5nQwNlLktCUC/vVKyU1fXVJWqW87byC165CM1EZpJ+aQU+VjKQ4UlcmK++ Zq31eXM8DYdkbJzeg3PHI3FBu5REMWBhtKn3eAoDsspM792laAqSyP5ye071TMt5NS6M bjUNkpMoBc36rNGhIsRoT/0QOYwkVNQErPCei61/UURXQ3ekhE8Bza1O+SxnWhFo/dYs r57oCB9gZmDIC7DtTtcXPcAaMosN9i6TBQ4tftJhNHHDsKfENrBjd8jycqItl1zDu794 ivVNhPRFBzFFTJE6PAY2b2KP+frsz69Y4dBtr5rwEe1IoyseLhLtNhdEPwTZzfdI6Rbf FO+Q== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8D5391fetjU3ekpZDrWHFkxYRoxxpYevMJ+dYscZYgI=; b=d5WCoySc34V7zYt3NQwSnBXH/Ssf2eqaHstU1SpYPQ0LpSP6VGnSTxy1yCbi7wVm3P lc6OIg2zYEsyDfgxRck4tFQsWzgOYab1bUkUUlAhJkg+UyjTGU6pG6yETsv9Ef4sAPhG kyZnQZsHrVt+L877qgMSU0p1NmBLBl9VeY8LI9Ms1gakr3/6DCbRdagoff+uEt5jBSp3 9PMxXGtIufwI/nbTd+SQelcB3YXRPeQx5e/OF5NRem9eNl/LY47UrGAgXUAahZ8AT9Uh Ml3sJawDpFNw0BHGAObOaVhWQOwYOsGIA8JwN3We8xxSMbBmke2AuT6NfDEmJEYjE1CJ r/cg== X-Gm-Message-State: APjAAAWAJqv9oZiGCugkKKDLdmTZGwTOB8P/SM2eZrw0Re30CUW5d7H9 Tc0/SLEr9N19bjE22ML1/d/Jacn+ X-Received: by 2002:a63:1316:: with SMTP id i22mr51726562pgl.274.1558031144325; Thu, 16 May 2019 11:25:44 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id s9sm9226513pfa.31.2019.05.16.11.25.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 11:25:43 -0700 (PDT) Date: Thu, 16 May 2019 23:55:39 +0530 From: Hariprasad Kelam To: Dan Carpenter , Greg Kroah-Hartman , Hardik Singh Rathore , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL Message-ID: <20190516182538.GA4025@hari-Inspiron-1545> References: <20190515174536.GA4965@hari-Inspiron-1545> <20190516080056.GH31203@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190516080056.GH31203@kadam> 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 On Thu, May 16, 2019 at 11:00:56AM +0300, Dan Carpenter wrote: > On Wed, May 15, 2019 at 11:15:36PM +0530, Hariprasad Kelam wrote: > > @@ -1042,7 +1042,7 @@ sint sta2ap_data_frame( > > } > > > > *psta = rtw_get_stainfo(pstapriv, pattrib->src); > > - if (*psta == NULL) { > > + if (!*psta == NULL) { > ^^^^^^^^^^^^^^ > It's surprising that this didn't cause some kind of warning somewhere... Thanks for pointing out this error. Here my intention is to write if(!*psta) but somehow i missed it . Will resend this patch after correcting the same.Like below > - if (*psta == NULL) { > > + if (!*psta) { Do let me know if the above propose change is fine or not. > > > RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("can't get psta under AP_MODE; drop pkt\n")); > > DBG_871X("issue_deauth to sta =" MAC_FMT " for the reason(7)\n", MAC_ARG(pattrib->src)); > > > > regards, > dan carpenter