Re: [PATCH -next] mtd: ubi: wl: remove set but not used variable 'prev_e'

From: Richard Weinberger
Date: Thu Jan 16 2020 - 18:36:47 EST


On Wed, Nov 27, 2019 at 7:22 AM YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/mtd/ubi/wl.c: In function 'find_wl_entry':
> drivers/mtd/ubi/wl.c:322:27: warning:
> variable 'prev_e' set but not used [-Wunused-but-set-variable]
>
> It's not used any more now, so remove it.
>
> Fixes: f9c34bb52997 ("ubi: Fix producing anchor PEBs")
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
> drivers/mtd/ubi/wl.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Applied. Thanks!

--
Thanks,
//richard