提交 bb82477e 编写于 作者: A Akinobu Mita 提交者: David Woodhouse

mtd: mtd_nandecctest: make module_init() return appropriate errno

Return -EINVAL instead of -1 (-EPERM) when test fails.
Signed-off-by: NAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 1f6edadc
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册