diff options
-rw-r--r-- | drivers/mtd/redboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c index 035cd9b0cc08..5a31f490368e 100644 --- a/drivers/mtd/redboot.c +++ b/drivers/mtd/redboot.c | |||
@@ -122,7 +122,7 @@ static int parse_redboot_partitions(struct mtd_info *master, | |||
122 | } | 122 | } |
123 | } | 123 | } |
124 | break; | 124 | break; |
125 | } else { | 125 | } else if (buf[i].size != -1) { |
126 | /* re-calculate of real numslots */ | 126 | /* re-calculate of real numslots */ |
127 | numslots = buf[i].size / sizeof(struct fis_image_desc); | 127 | numslots = buf[i].size / sizeof(struct fis_image_desc); |
128 | } | 128 | } |