Skip to content

Commit

Permalink
[UBI] drivers/mtd/ubi/wl.c: fix uninitialized var warning
Browse files Browse the repository at this point in the history
drivers/mtd/ubi/wl.c:746: warning: 'pe' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
akpm@linux-foundation.org authored and David Woodhouse committed Feb 3, 2008
1 parent 5b1defe commit 4354c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
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;

Expand Down

0 comments on commit 4354c5a

Please sign in to comment.