Skip to content

Commit 2f3cdb5

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
UBI: bugfix in max_sqnum calculation
Do not zero max_sqnum after a new volume has been found. Signed-off-by: Artem Bityutskiy <[email protected]>
1 parent 76eafe4 commit 2f3cdb5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mtd/ubi/scan.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ static struct ubi_scan_volume *add_volume(struct ubi_scan_info *si, int vol_id,
222222
return ERR_PTR(-ENOMEM);
223223

224224
sv->highest_lnum = sv->leb_count = 0;
225-
si->max_sqnum = 0;
226225
sv->vol_id = vol_id;
227226
sv->root = RB_ROOT;
228227
sv->used_ebs = be32_to_cpu(vid_hdr->used_ebs);

0 commit comments

Comments
 (0)