aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/stresstest.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-08-15 09:55:09 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-08-30 16:36:06 -0400
commit8a9f4aa3ac7560efcb242b3d1a31b1d804106f12 (patch)
treeac105da51b1987e3b6894fb6b1bd73a6765c3ca3 /drivers/mtd/tests/stresstest.c
parentabc173ad84e50645f9136ea56afa9f86c98bf349 (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/stresstest.c')
-rw-r--r--drivers/mtd/tests/stresstest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mtd/tests/stresstest.c b/drivers/mtd/tests/stresstest.c
index 6c9e23f40cbc..c9d42cc2df1b 100644
--- a/drivers/mtd/tests/stresstest.c
+++ b/drivers/mtd/tests/stresstest.c
@@ -126,11 +126,8 @@ static int do_write(void)
126 } 126 }
127 addr = eb * mtd->erasesize + offs; 127 addr = eb * mtd->erasesize + offs;
128 err = mtdtest_write(mtd, addr, len, writebuf); 128 err = mtdtest_write(mtd, addr, len, writebuf);
129 if (unlikely(err)) { 129 if (unlikely(err))
130 pr_err("error: write failed at 0x%llx\n",
131 (long long)addr);
132 return err; 130 return err;
133 }
134 offs += len; 131 offs += len;
135 while (offs > mtd->erasesize) { 132 while (offs > mtd->erasesize) {
136 offsets[eb++] = mtd->erasesize; 133 offsets[eb++] = mtd->erasesize;