diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-08-15 22:55:09 +0900 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 21:36:06 +0100 |
commit | 8a9f4aa3ac7560efcb242b3d1a31b1d804106f12 (patch) | |
tree | ac105da51b1987e3b6894fb6b1bd73a6765c3ca3 /drivers/mtd/tests/nandbiterrs.c | |
parent | abc173ad84e50645f9136ea56afa9f86c98bf349 (diff) |
mtd: tests: incorporate error message for mtdtest_write()
All callers of mtdtest_write() print the same error message on failure.
This incorporates the error message to mtdtest_write() and removes them
from the callers.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/tests/nandbiterrs.c')
-rw-r--r-- | drivers/mtd/tests/nandbiterrs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/tests/nandbiterrs.c b/drivers/mtd/tests/nandbiterrs.c index 5a8c8584112d..3cd3aabbe1cd 100644 --- a/drivers/mtd/tests/nandbiterrs.c +++ b/drivers/mtd/tests/nandbiterrs.c @@ -102,16 +102,10 @@ static uint8_t hash(unsigned offset) /* Writes wbuffer to page */ static int write_page(int log) { - int err; - if (log) pr_info("write_page\n"); - err = mtdtest_write(mtd, offset, mtd->writesize, wbuffer); - if (err) - pr_err("error: write failed at %#llx\n", (long long)offset); - - return err; + return mtdtest_write(mtd, offset, mtd->writesize, wbuffer); } /* Re-writes the data area while leaving the OOB alone. */ |