Commit db7c7274 authored by Brian Norris's avatar Brian Norris

mtd: readtest: don't clobber error reports

Commit 2a6a28e7 ("mtd: Make MTD tests cancelable") accidentally
clobbered any read failure reports.

Coverity CID #1296020
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent b787f68c
...@@ -191,10 +191,12 @@ static int __init mtd_readtest_init(void) ...@@ -191,10 +191,12 @@ static int __init mtd_readtest_init(void)
err = ret; err = ret;
} }
err = mtdtest_relax(); ret = mtdtest_relax();
if (err) if (ret) {
err = ret;
goto out; goto out;
} }
}
if (err) if (err)
pr_info("finished with errors\n"); pr_info("finished with errors\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment