The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Hariprasad Kelam <hariprasad.kelam@gmail.com>
To: Dan Carpenter <dan.carpenter@oracle.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Hardik Singh Rathore <hardiksingh.k@gmail.com>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL
Date: Thu, 16 May 2019 23:55:39 +0530	[thread overview]
Message-ID: <20190516182538.GA4025@hari-Inspiron-1545> (raw)
In-Reply-To: <20190516080056.GH31203@kadam>

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

  reply	other threads:[~2019-05-16 18:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-15 17:45 [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL Hariprasad Kelam
2019-05-16  8:00 ` Dan Carpenter
2019-05-16 18:25   ` Hariprasad Kelam [this message]
2019-05-16 18:58     ` Joe Perches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190516182538.GA4025@hari-Inspiron-1545 \
    --to=hariprasad.kelam@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hardiksingh.k@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox