]> err.no Git - linux-2.6/blobdiff - drivers/mtd/ubi/wl.c
Merge branch 'core/stacktrace' of git://git.kernel.org/pub/scm/linux/kernel/git/tip...
[linux-2.6] / drivers / mtd / ubi / wl.c
index 1142aabcfc8ced0818224239bdb189f14a0928cb..a471a491f0ab0c2840543594966640487e7bacd4 100644 (file)
@@ -743,7 +743,7 @@ static int wear_leveling_worker(struct ubi_device *ubi, struct ubi_work *wrk,
                                int cancel)
 {
        int err, put = 0, scrubbing = 0, protect = 0;
-       struct ubi_wl_prot_entry *pe;
+       struct ubi_wl_prot_entry *uninitialized_var(pe);
        struct ubi_wl_entry *e1, *e2;
        struct ubi_vid_hdr *vid_hdr;
 
@@ -1303,7 +1303,6 @@ int ubi_wl_flush(struct ubi_device *ubi)
         * Make sure all the works which have been done in parallel are
         * finished.
         */
-       ubi_assert(ubi->ref_count > 0);
        down_write(&ubi->work_sem);
        up_write(&ubi->work_sem);