]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: omap2-mcspi: remove redundant check for error status
authorColin Ian King <colin.king@canonical.com>
Thu, 25 May 2017 16:51:34 +0000 (17:51 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 May 2017 11:40:11 +0000 (12:40 +0100)
commitad7449969d827965484306ad8cc56edc7e55687c
tree4f667747189a75983f11da920bcbce1253c1f164
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
spi: omap2-mcspi: remove redundant check for error status

The check to see if status is less than zero is actually redundant
as all previous places where it is -ve have already branched to the
exit paths, so it is never less than zero at the check.

Detected by CoverityScan, CID#1357119 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c