projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76eafe4
)
UBI: bugfix in max_sqnum calculation
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 6 Jul 2007 11:38:46 +0000
(14:38 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Wed, 18 Jul 2007 13:58:02 +0000
(16:58 +0300)
Do not zero max_sqnum after a new volume has been found.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/scan.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/scan.c
b/drivers/mtd/ubi/scan.c
index
ce26b1b
..
94ee549
100644
(file)
--- 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);