• Artem Bityutskiy's avatar
    mtd: mtdswap: fix compilation warning · 68b1a1e7
    Artem Bityutskiy authored
    Fix the following compilation warning:
    
    drivers/mtd/mtdswap.c: In function ‘mtdswap_pick_gc_eblk’:
    drivers/mtd/mtdswap.c:859: warning: ‘idx’ may be used uninitialized in this function
    drivers/mtd/mtdswap.c:859: note: ‘idx’ was declared here
    
    Initialize idx to -1 because this value means "no tree choosen".
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    68b1a1e7
mtdswap.c 35.5 KB