Re: [PATCH -next] staging: wfx: remove set but not used variable 'tx_priv'

From: Jérôme Pouiller
Date: Tue Feb 11 2020 - 10:24:12 EST


On Tuesday 11 February 2020 16:21:41 CET Jérôme Pouiller wrote:
> On Tuesday 11 February 2020 15:03:34 CET YueHaibing wrote:
> > drivers/staging/wfx/queue.c: In function wfx_tx_queues_get:
> > drivers/staging/wfx/queue.c:484:28: warning: variable tx_priv set but not used [-Wunused-but-set-variable]
> >
> > commit 2e57865e79cf ("staging: wfx: pspoll_mask make no sense")
> > left behind this unused variable.
> >
> > Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Maybe it could make sens to add a Fixes tag with the commit id that
introduce the warning?


--
Jérôme Pouiller