diff options
| author | Tom Rini <[email protected]> | 2016-04-25 13:32:18 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-04-25 13:32:18 -0400 |
| commit | 3aee11c8ee7aa1e293a8a8fe83b362ca12c08d15 (patch) | |
| tree | 471ee528bd71bd586b27beddd48ca64a039316e2 /drivers | |
| parent | 65341967ce9ef2656c61dcd3126536e8865c349d (diff) | |
| parent | b1d6590d357bde2332cb699e2fd2efc7a7c64f38 (diff) | |
Merge branch 'master' of git://git.denx.de/u-boot-ubi
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/ubi/wl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index 507b0917206..e823ca56f23 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -1528,6 +1528,7 @@ int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) INIT_LIST_HEAD(&ubi->pq[i]); ubi->pq_head = 0; + ubi->free_count = 0; list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) { cond_resched(); @@ -1546,7 +1547,6 @@ int ubi_wl_init(struct ubi_device *ubi, struct ubi_attach_info *ai) found_pebs++; } - ubi->free_count = 0; list_for_each_entry(aeb, &ai->free, u.list) { cond_resched(); |
