From: Artem Bityutskiy Date: Fri, 25 Mar 2011 15:10:16 +0000 (+0200) Subject: mtd: mtdswap: fix compilation warning X-Git-Tag: v2.6.39-rc1~40^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68b1a1e786f29c900fa1c516a402e24f0ece622a;p=pandora-kernel.git mtd: mtdswap: fix compilation warning 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: Artem Bityutskiy --- Reading git-diff-tree failed