diff options
-rw-r--r-- | drivers/mtd/mtdswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdswap.c b/drivers/mtd/mtdswap.c index dc4b136800b8..237913c5c92c 100644 --- a/drivers/mtd/mtdswap.c +++ b/drivers/mtd/mtdswap.c | |||
@@ -850,7 +850,7 @@ static int mtdswap_wlfreq(unsigned int maxdiff) | |||
850 | static int mtdswap_choose_wl_tree(struct mtdswap_dev *d) | 850 | static int mtdswap_choose_wl_tree(struct mtdswap_dev *d) |
851 | { | 851 | { |
852 | static unsigned int pick_cnt; | 852 | static unsigned int pick_cnt; |
853 | unsigned int i, idx, wear, max; | 853 | unsigned int i, idx = -1, wear, max; |
854 | struct rb_root *root; | 854 | struct rb_root *root; |
855 | 855 | ||
856 | max = 0; | 856 | max = 0; |