[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220415025151.GA33625@jaehee-ThinkPad-X1-Extreme>
Date: Thu, 14 Apr 2022 22:51:51 -0400
From: Jaehee Park <jhpark1013@...il.com>
To: Pavel Skripkin <paskripkin@...il.com>
Cc: Larry.Finger@...inger.net, phil@...lpotter.co.uk,
gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org, outreachy@...ts.linux.dev
Subject: Re: [PATCH 1/6] staging: r8188eu: remove unnecessary braces in
single statement block
On Thu, Apr 14, 2022 at 10:50:52PM +0300, Pavel Skripkin wrote:
> Hi Jaehee,
>
> On 4/14/22 22:41, Jaehee Park wrote:
> > > > @@ -112,9 +112,8 @@ void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv)
> > > > rtw_free_mlme_priv_ie_data(pmlmepriv);
> > > > - if (pmlmepriv) {
> > > > + if (pmlmepriv)
> > > > vfree(pmlmepriv->free_bss_buf);
> > > > - }
> > >
> > > If pmlmepriv is equal to NULL we would die in rtw_free_mlme_priv_ie_data(),
> > > so this check is just redundant
> > >
> >
> > Hi Pavel, thank you for your comment! If I'm removing this if statement,
> > should I include vfree(pmlmepriv->free_bss_buf) in
> > rtw_free_mlme_priv_ie_data?
> >
>
> Hm
>
> Simple grep shows, that this member is just unused
>
> 1 drivers/staging/r8188eu/core/rtw_mlme.c|64 col 13| pmlmepriv->free_bss_buf
> = pbuf;
> 2 drivers/staging/r8188eu/core/rtw_mlme.c|116 col 20|
> vfree(pmlmepriv->free_bss_buf);
> 3 drivers/staging/r8188eu/include/rtw_mlme.h|322 col 6| u8 *free_bss_buf;
>
> so looks like you can just remove free_bss_buf and all related lines.
>
> I hope I haven't overlooked something
>
Hi Pavel, Thank you for your review! I have sent a second version of the
patchset.
Thanks,
Jaehee
>
>
> With regards,
> Pavel Skripkin
Powered by blists - more mailing lists