[PATCH] mtd: return -1 if verify failed

Roel Kluin roel.kluin at gmail.com
Thu Jul 1 18:12:17 EDT 2010


It should return -1 if the verify failed.

Signed-off-by: Roel Kluin <roel.kluin at gmail.com>
---
I think this needed, correct?

diff --git a/drivers/mtd/tests/mtd_pagetest.c b/drivers/mtd/tests/mtd_pagetest.c
index 6bc1b82..7414888 100644
--- a/drivers/mtd/tests/mtd_pagetest.c
+++ b/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