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

akpm at linux-foundation.org akpm at linux-foundation.org
Tue Jul 20 18:24:00 EDT 2010


From: Roel Kluin <roel.kluin at gmail.com>

It should return -1 if the verify failed.

Signed-off-by: Roel Kluin <roel.kluin at gmail.com>
Cc: David Woodhouse <dwmw2 at infradead.org>
Cc: Anton Vorontsov <cbou at mail.ru>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
---

 drivers/mtd/tests/mtd_pagetest.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/mtd/tests/mtd_pagetest.c~mtd-return-1-if-verify-failed drivers/mtd/tests/mtd_pagetest.c
--- a/drivers/mtd/tests/mtd_pagetest.c~mtd-return-1-if-verify-failed
+++ a/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);
_



More information about the linux-mtd mailing list