Skip to content

Commit

Permalink
mtd: readtest: don't clobber error reports
Browse files Browse the repository at this point in the history
Commit 2a6a28e ("mtd: Make MTD tests cancelable") accidentally
clobbered any read failure reports.

Coverity CID #1296020

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  • Loading branch information
Brian Norris committed May 14, 2015
1 parent b787f68 commit db7c727
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/mtd/tests/readtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit db7c727

Please sign in to comment.