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,9 +191,11 @@ static int __init mtd_readtest_init(void)
err = ret;
}
err = mtdtest_relax();
if (err)
ret = mtdtest_relax();
if (ret) {
err = ret;
goto out;
}
}
if (err)
......
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