From abc173ad84e50645f9136ea56afa9f86c98bf349 Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Thu, 15 Aug 2013 22:55:08 +0900 Subject: mtd: tests: incorporate error message for mtdtest_read() All callers of mtdtest_read() print the same error message on failure. This incorporates the error message to mtdtest_read() and removes them from the callers. Signed-off-by: Akinobu Mita Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- drivers/mtd/tests/readtest.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/mtd/tests/readtest.c') diff --git a/drivers/mtd/tests/readtest.c b/drivers/mtd/tests/readtest.c index ffd50d628219..626e66d0f7e7 100644 --- a/drivers/mtd/tests/readtest.c +++ b/drivers/mtd/tests/readtest.c @@ -55,8 +55,6 @@ static int read_eraseblock_by_page(int ebnum) memset(buf, 0 , pgsize); ret = mtdtest_read(mtd, addr, pgsize, buf); if (ret) { - pr_err("error: read failed at %#llx\n", - (long long)addr); if (!err) err = ret; } -- cgit v1.2.3