Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T8WGT-0007F0-K7 for linux-mtd@lists.infradead.org; Mon, 03 Sep 2012 13:00:31 +0000 Received: by pbbrq8 with SMTP id rq8so8483460pbb.36 for ; Mon, 03 Sep 2012 06:00:28 -0700 (PDT) From: Akinobu Mita To: linux-mtd@lists.infradead.org Subject: [PATCH v3 04/11] mtd: mtd_nandecctest: make module_init() return appropriate errno Date: Mon, 3 Sep 2012 21:59:59 +0900 Message-Id: <1346677206-13621-5-git-send-email-akinobu.mita@gmail.com> In-Reply-To: <1346677206-13621-1-git-send-email-akinobu.mita@gmail.com> References: <1346677206-13621-1-git-send-email-akinobu.mita@gmail.com> Cc: Artem Bityutskiy , David Woodhouse , Akinobu Mita List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Return -EINVAL instead of -1 (-EPERM) when test fails. Signed-off-by: Akinobu Mita Cc: David Woodhouse Cc: linux-mtd@lists.infradead.org Cc: Artem Bityutskiy --- drivers/mtd/tests/mtd_nandecctest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.11.4