diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-11-27 07:20:02 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-01-16 23:35:20 +0100 |
commit | 770aa73d8965b6fe7b08b0e5a8f4cceb4cb17f12 (patch) | |
tree | d3f7719004cf85ed6c5f6b42eafb839c46ea28fc /drivers/mtd/ubi | |
parent | ubi: fastmap: Fix inverted logic in seen selfcheck (diff) | |
download | linux-770aa73d8965b6fe7b08b0e5a8f4cceb4cb17f12.tar.xz linux-770aa73d8965b6fe7b08b0e5a8f4cceb4cb17f12.zip |
ubi: wl: Remove set but not used variable 'prev_e'
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@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 5d77a38dba54..837d690a8c60 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -319,7 +319,7 @@ static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, struct rb_root *root, int diff) { struct rb_node *p; - struct ubi_wl_entry *e, *prev_e = NULL; + struct ubi_wl_entry *e; int max; e = rb_entry(rb_first(root), struct ubi_wl_entry, u.rb); @@ -334,7 +334,6 @@ static struct ubi_wl_entry *find_wl_entry(struct ubi_device *ubi, p = p->rb_left; else { p = p->rb_right; - prev_e = e; e = e1; } } |