diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/tests/mtd_nandecctest.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c index 4d7b171e825f..f71ed92b932c 100644 --- a/drivers/mtd/tests/mtd_nandecctest.c +++ b/drivers/mtd/tests/mtd_nandecctest.c @@ -66,10 +66,13 @@ static int nand_ecc_test(const size_t size) static int __init ecc_test_init(void) { - nand_ecc_test(256); - nand_ecc_test(512); + int err; - return 0; + err = nand_ecc_test(256); + if (err) + return err; + + return nand_ecc_test(512); } static void __exit ecc_test_exit(void) |