diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-06 07:38:46 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-18 09:58:02 -0400 |
commit | 2f3cdb55eef4fa1398965e893f731fb6e6312d34 (patch) | |
tree | 9c5fd92c4a09fc3a93044ca35108ccecae9be571 /drivers/mtd/ubi | |
parent | 76eafe479ec30dd72b8cf209c4f576eac3c93112 (diff) |
UBI: bugfix in max_sqnum calculation
Do not zero max_sqnum after a new volume has been found.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r-- | drivers/mtd/ubi/scan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index ce26b1b25ba7..94ee54934411 100644 --- a/drivers/mtd/ubi/scan.c +++ b/drivers/mtd/ubi/scan.c | |||
@@ -222,7 +222,6 @@ static struct ubi_scan_volume *add_volume(struct ubi_scan_info *si, int vol_id, | |||
222 | return ERR_PTR(-ENOMEM); | 222 | return ERR_PTR(-ENOMEM); |
223 | 223 | ||
224 | sv->highest_lnum = sv->leb_count = 0; | 224 | sv->highest_lnum = sv->leb_count = 0; |
225 | si->max_sqnum = 0; | ||
226 | sv->vol_id = vol_id; | 225 | sv->vol_id = vol_id; |
227 | sv->root = RB_ROOT; | 226 | sv->root = RB_ROOT; |
228 | sv->used_ebs = be32_to_cpu(vid_hdr->used_ebs); | 227 | sv->used_ebs = be32_to_cpu(vid_hdr->used_ebs); |