aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/redboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/redboot.c')
-rw-r--r--drivers/mtd/redboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c
index 4b277211e27b..b5259215f6d7 100644
--- a/drivers/mtd/redboot.c
+++ b/drivers/mtd/redboot.c
@@ -110,6 +110,9 @@ static int parse_redboot_partitions(struct mtd_info *master,
110 } 110 }
111 } 111 }
112 break; 112 break;
113 } else {
114 /* re-calculate of real numslots */
115 numslots = buf[i].size / sizeof(struct fis_image_desc);
113 } 116 }
114 } 117 }
115 if (i == numslots) { 118 if (i == numslots) {