From: Akinobu Mita Date: Mon, 3 Sep 2012 12:59:59 +0000 (+0900) Subject: mtd: mtd_nandecctest: make module_init() return appropriate errno X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bb82477ebede3d0c37a502a899b68eb45fefca4f;p=linux-beck.git mtd: mtd_nandecctest: make module_init() return appropriate errno Return -EINVAL instead of -1 (-EPERM) when test fails. Signed-off-by: Akinobu Mita Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- 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