Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Joe Perches
On Thu, 2019-05-16 at 23:55 +0530, Hariprasad Kelam wrote: > 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 =

Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Hariprasad Kelam
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 ==

Re: [PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-16 Thread Dan Carpenter
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) {

[PATCH] staging: rtl8723bs: core: rtw_recv: fix warning Comparison to NULL

2019-05-15 Thread Hariprasad Kelam
fix below warning reported by checkpatch CHECK: Comparison to NULL could be written "!precvpriv->pallocated_frame_buf" CHECK: Comparison to NULL could be written "padapter" Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_recv.c | 48 +++ 1