Skip to content

Commit bb82477

Browse files
mitaDavid Woodhouse
authored andcommitted
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>
1 parent 1f6edad commit bb82477

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mtd/tests/mtd_nandecctest.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static int nand_ecc_test(const size_t size)
5151
print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
5252
error_data, size, false);
5353

54-
return -1;
54+
return -EINVAL;
5555
}
5656

5757
#else

0 commit comments

Comments
 (0)