diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2012-09-03 12:59:59 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 14:34:25 (GMT) |
commit | bb82477ebede3d0c37a502a899b68eb45fefca4f (patch) | |
tree | df7352575d835ce21b1dcf210d1d50827fad6ad1 /drivers/mtd/tests | |
parent | 1f6edadcccfa6a213fd2bbe6f193a78925f8312a (diff) | |
download | linux-bb82477ebede3d0c37a502a899b68eb45fefca4f.tar.xz |
mtd: mtd_nandecctest: make module_init() return appropriate errno
Return -EINVAL instead of -1 (-EPERM) when test fails.
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')
-rw-r--r-- | drivers/mtd/tests/mtd_nandecctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c index 1051b48..128547c 100644 --- a/drivers/mtd/tests/mtd_nandecctest.c +++ b/drivers/mtd/tests/mtd_nandecctest.c @@ -51,7 +51,7 @@ static int nand_ecc_test(const size_t size) print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4, error_data, size, false); - return -1; + return -EINVAL; } #else |