Skip to contentSkip to conversation

drivers/mtd/tests/mtd_pagetest.c: return -1 if verify failed

PATCH In review [email protected] 2 participants 2 messages Jul 20, 2010 – Jul 21, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 drivers/mtd/tests/mtd_pagetest.c: return -1 if verify failed

From: Roel Kluin <[email protected]>

It should return -1 if the verify failed.

Cc David Woodhouse <[email protected]>
Cc Anton Vorontsov <[email protected]>

---

 drivers/mtd/tests/mtd_pagetest.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/tests/mtd_pagetest.c renamed from drivers/mtd/tests/mtd_pagetest.c~mtd-return-1-if-verify-failed +1 -1
diff -puN drivers/mtd/tests/mtd_pagetest.c~mtd-return-1-if-verify-failed drivers/mtd/tests/mtd_pagetest.c
@@ -358,7 +358,7 @@ static int erasecrosstest(void)
 		printk(PRINT_PREF "verify failed!\n");
 		errcnt += 1;
 		ok = 0;
-		return err;
+		return -1;
 	}
 
 	printk(PRINT_PREF "erasing block %d\n", ebnum);

_

#1 lore raw
Quoted 8 lines · On Tue, 2010-07-20 at 15:24 -0700, [email protected] wrote:

From: Roel Kluin <[email protected]>

It should return -1 if the verify failed.

Cc David Woodhouse <[email protected]>
Cc Anton Vorontsov <[email protected]>

This patch, but in an improved form, is also in my l2-mtd-2.6.git / master tree.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)