提交 db7c7274 编写于 作者: B 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: NBrian Norris <computersforpeace@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册