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

Richard Weinberger richard.weinberger at gmail.com
Thu Jan 16 15:36:23 PST 2020


On Wed, Nov 27, 2019 at 7:22 AM YueHaibing <yuehaibing at huawei.com> 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 at huawei.com>
> ---
>  drivers/mtd/ubi/wl.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied. Thanks!

-- 
Thanks,
//richard



More information about the linux-mtd mailing list