diff options
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. */ |