[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4C2D12C1.3000801@gmail.com>
Date: Fri, 02 Jul 2010 00:12:17 +0200
From: Roel Kluin <roel.kluin@...il.com>
To: David Woodhouse <dwmw2@...radead.org>,
linux-mtd@...ts.infradead.org,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] mtd: return -1 if verify failed
It should return -1 if the verify failed.
Signed-off-by: Roel Kluin <roel.kluin@...il.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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists