mtd: mtd_nandecctest: make module_init() return appropriate errno
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Sep 29 10:59:13 EDT 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=bb82477ebede3d0c37a502a899b68eb45fefca4f
Commit: bb82477ebede3d0c37a502a899b68eb45fefca4f
Parent: 1f6edadcccfa6a213fd2bbe6f193a78925f8312a
Author: Akinobu Mita <akinobu.mita at gmail.com>
AuthorDate: Mon Sep 3 21:59:59 2012 +0900
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:34:25 2012 +0100
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 at gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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
More information about the linux-mtd-cvs
mailing list