]> www.infradead.org Git - mtd-utils.git/commitdiff
ubiformat: add a TODO entry
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 5 Jun 2009 16:41:47 +0000 (19:41 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 5 Jun 2009 16:41:47 +0000 (19:41 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/ubiformat.c

index b9d3f79a5534ead3cf2d424d058fca076f8fd060..a3df28145f18eb0c66f1f15f9445c2b3cf322da5 100644 (file)
@@ -392,6 +392,7 @@ static int consecutive_bad_check(int eb)
        return 0;
 }
 
+/* TODO: we should actually torture the PEB before marking it as bad */
 static int mark_bad(const struct mtd_dev_info *mtd, struct ubi_scan_info *si, int eb)
 {
        int err;
@@ -529,7 +530,6 @@ static int flash_image(const struct mtd_dev_info *mtd, struct ubi_scan_info *si)
                        if (errno != EIO)
                                goto out_close;
 
-
                        if (mark_bad(mtd, si, eb)) {
                                normsg("operation incomplete");
                                goto out_close;