summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2012-09-03 21:59:59 +0900
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 15:34:25 +0100
commitbb82477ebede3d0c37a502a899b68eb45fefca4f (patch)
treedf7352575d835ce21b1dcf210d1d50827fad6ad1 /drivers/mtd/tests
parent1f6edadcccfa6a213fd2bbe6f193a78925f8312a (diff)
downloadlinux-bb82477ebede3d0c37a502a899b68eb45fefca4f.tar.gz
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.c2
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