From: Andrew Morton drivers/mtd/ubi/wl.c:746: warning: 'pe' may be used uninitialized in this function Cc: David Woodhouse Signed-off-by: Andrew Morton --- drivers/mtd/ubi/wl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/mtd/ubi/wl.c~drivers-mtd-ubi-wlc-fix-uninitialized-var-warning drivers/mtd/ubi/wl.c --- a/drivers/mtd/ubi/wl.c~drivers-mtd-ubi-wlc-fix-uninitialized-var-warning +++ a/drivers/mtd/ubi/wl.c @@ -743,7 +743,7 @@ static int wear_leveling_worker(struct u int cancel) { int err, put = 0, scrubbing = 0, protect = 0; - struct ubi_wl_prot_entry *pe; + struct ubi_wl_prot_entry *uninitialized_var(pe); struct ubi_wl_entry *e1, *e2; struct ubi_vid_hdr *vid_hdr; _