Skip to content

Commit

Permalink
mtd: mtd_nandecctest: make module_init() return appropriate errno
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and David Woodhouse committed Sep 29, 2012
1 parent 1f6edad commit bb82477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/tests/mtd_nandecctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb82477

Please sign in to comment.