mtd: return -1 if verify failed
PATCH 1/1 mtd: return -1 if verify failed
It should return -1 if the verify failed.
Signed-off-by Roel Kluin <[email protected]>
---
I think this needed, correct?
drivers/mtd/tests/mtd_pagetest.c +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 11 lines · Roel Kluin
It should return -1 if the verify failed.
Signed-off-by Roel Kluin <[email protected]>---
I think this needed, correct?drivers/mtd/tests/mtd_pagetest.c +0
-0
drivers/mtd/tests/mtd_pagetest.c static int erasecrosstest(void) · line 362
Quoted 6 lines
drivers/mtd/tests/mtd_pagetest.c +1
-1@@ -358,7 +358,7 @@ static int erasecrosstest(void)printk (PRINT_PREF "verify failed!\n" ); errcnt +=1 ; ok =0 ; -return err; +return -1 ; }
Yeah, I changed your patch a bit and removed the 'ok' variable altogether. Pushed to l2-mtd-2.6.git, please, check:
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)