diff options
author | akpm@linux-foundation.org <akpm@linux-foundation.org> | 2008-01-16 02:48:49 -0800 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-02-03 18:10:00 +1100 |
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 c7b0afc9d28..c57e8eff986 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, */ static int process_eb(struct ubi_device *ubi, struct ubi_scan_info *si, int pnum) { - long long ec; + long long uninitialized_var(ec); int err, bitflips = 0, vol_id, ec_corr = 0; dbg_bld("scan PEB %d", pnum); |