diff options
author | akpm@linux-foundation.org <akpm@linux-foundation.org> | 2008-01-16 05:47:01 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:09:45 -0500 |
commit | 4354c5a4ef8d484a463ed8d996e9653ad8be5c72 (patch) | |
tree | 0185ea83d351fd59b810f3548940188eb9ed6d20 /drivers/mtd | |
parent | 5b1defe73a538dfe35f7b59bcaf047c0005bff4d (diff) |
[UBI] drivers/mtd/ubi/wl.c: fix uninitialized var warning
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ubi/wl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 1142aabcfc8c..0d44ad95ab84 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -743,7 +743,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk, | |||
743 | int cancel) | 743 | int cancel) |
744 | { | 744 | { |
745 | int err, put = 0, scrubbing = 0, protect = 0; | 745 | int err, put = 0, scrubbing = 0, protect = 0; |
746 | struct ubi_wl_prot_entry *pe; | 746 | struct ubi_wl_prot_entry *uninitialized_var(pe); |
747 | struct ubi_wl_entry *e1, *e2; | 747 | struct ubi_wl_entry *e1, *e2; |
748 | struct ubi_vid_hdr *vid_hdr; | 748 | struct ubi_vid_hdr *vid_hdr; |
749 | 749 | ||