Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb82477e authored by Akinobu Mita's avatar Akinobu Mita Committed by David Woodhouse
Browse files

mtd: mtd_nandecctest: make module_init() return appropriate errno



Return -EINVAL instead of -1 (-EPERM) when test fails.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 1f6edadc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -51,7 +51,7 @@ static int nand_ecc_test(const size_t size)
	print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
	print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_OFFSET, 16, 4,
			error_data, size, false);
			error_data, size, false);


	return -1;
	return -EINVAL;
}
}


#else
#else