drivers/mtd/tests/mtd_pagetest.c: return -1 if verify failed
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.
Signed-off-by Roel Kluin <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Anton Vorontsov <[email protected]>
Signed-off-by Andrew Morton <[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
@@ -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);
_
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.
Signed-off-by Roel Kluin <[email protected]>Cc David Woodhouse <[email protected]>Cc Anton Vorontsov <[email protected]>Signed-off-by Andrew Morton <[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 (Артём Битюцкий)