diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2012-09-03 21:59:59 +0900 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 15:34:25 +0100 |
commit | bb82477ebede3d0c37a502a899b68eb45fefca4f (patch) | |
tree | df7352575d835ce21b1dcf210d1d50827fad6ad1 /drivers/mtd/tests/mtd_nandecctest.c | |
parent | 1f6edadcccfa6a213fd2bbe6f193a78925f8312a (diff) | |
download | blackbird-op-linux-bb82477ebede3d0c37a502a899b68eb45fefca4f.tar.gz blackbird-op-linux-bb82477ebede3d0c37a502a899b68eb45fefca4f.zip |
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/mtd_nandecctest.c')
-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 1051b4814daa..128547c5bd55 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 |