diff options
author | akpm@linux-foundation.org <akpm@linux-foundation.org> | 2008-01-16 05:48:49 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 02:10:00 -0500 |
commit | 9308758c50610c077ca41e82c4b98b2de96e8387 (patch) | |
tree | b96451caac414c309be51ee495eadf034bf074b3 /drivers/mtd | |
parent | 4354c5a4ef8d484a463ed8d996e9653ad8be5c72 (diff) |
[UBI] drivers/mtd/ubi/scan.c: fix uninitialized var warning
drivers/mtd/ubi/scan.c: In function 'ubi_scan':
drivers/mtd/ubi/scan.c:772: warning: 'ec' 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/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index c7b0afc9d280..c57e8eff9866 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -769,7 +769,7 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi, | |||
769 | */ | 769 | */ |
770 | static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, int pnum) | 770 | static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, int pnum) |
771 | { | 771 | { |
772 | long long ec; | 772 | long long uninitialized_var(ec); |
773 | int err, bitflips = 0, vol_id, ec_corr = 0; | 773 | int err, bitflips = 0, vol_id, ec_corr = 0; |
774 | 774 | ||
775 | dbg_bld("scan PEB %d", pnum); | 775 | dbg_bld("scan PEB %d", pnum); |