• Artem Bityutskiy's avatar
    UBI: fix warnings · c18a8418
    Artem Bityutskiy authored
    Old gcc complains:
    
    CC      drivers/mtd/ubi/wl.o
    drivers/mtd/ubi/wl.c: In function 'wear_leveling_worker':
    drivers/mtd/ubi/wl.c:746: warning: 'pe' may be used uninitialized in this function
    CC      drivers/mtd/ubi/scan.o
    drivers/mtd/ubi/scan.c: In function 'ubi_scan':
    drivers/mtd/ubi/scan.c:772: warning: 'ec' may be used uninitialized in this function
    drivers/mtd/ubi/scan.c:772: note: 'ec' was declared here
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    c18a8418
wl.c 43.7 KB