From: Artem Bityutskiy Date: Fri, 6 Jul 2007 11:38:46 +0000 (+0300) Subject: UBI: bugfix in max_sqnum calculation X-Git-Tag: v2.6.23-rc1~495^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2f3cdb55eef4fa1398965e893f731fb6e6312d34;p=linux-2.6-omap-h63xx.git UBI: bugfix in max_sqnum calculation Do not zero max_sqnum after a new volume has been found. Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c index ce26b1b25ba..94ee5493441 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, return ERR_PTR(-ENOMEM); sv->highest_lnum = sv->leb_count = 0; - si->max_sqnum = 0; sv->vol_id = vol_id; sv->root = RB_ROOT; sv->used_ebs = be32_to_cpu(vid_hdr->used_ebs);