projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1defe
)
[UBI] drivers/mtd/ubi/wl.c: fix uninitialized var warning
author
akpm@linux-foundation.org
<akpm@linux-foundation.org>
Wed, 16 Jan 2008 10:47:01 +0000
(
02:47
-0800)
committer
David Woodhouse
<dwmw2@infradead.org>
Sun, 3 Feb 2008 07:09:45 +0000
(18:09 +1100)
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>
drivers/mtd/ubi/wl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/wl.c
b/drivers/mtd/ubi/wl.c
index 1142aabcfc8ced0818224239bdb189f14a0928cb..0d44ad95ab84494c9f0c4bd24d77d5a12f895d45 100644
(file)
--- 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,
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;