Skip to content

Commit

Permalink
[UBI] drivers/mtd/ubi/scan.c: fix uninitialized var warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
akpm@linux-foundation.org authored and David Woodhouse committed Feb 3, 2008
1 parent 4354c5a commit 9308758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9308758

Please sign in to comment.