diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-05-25 12:51:34 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-05-26 07:40:11 -0400 |
commit | ad7449969d827965484306ad8cc56edc7e55687c (patch) | |
tree | 4f667747189a75983f11da920bcbce1253c1f164 | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
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>
-rw-r--r-- | drivers/spi/spi-omap2-mcspi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 7275223dbcd4..e048268d8ba2 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c | |||
@@ -1412,9 +1412,6 @@ static int omap2_mcspi_probe(struct platform_device *pdev) | |||
1412 | sprintf(mcspi->dma_channels[i].dma_tx_ch_name, "tx%d", i); | 1412 | sprintf(mcspi->dma_channels[i].dma_tx_ch_name, "tx%d", i); |
1413 | } | 1413 | } |
1414 | 1414 | ||
1415 | if (status < 0) | ||
1416 | goto free_master; | ||
1417 | |||
1418 | pm_runtime_use_autosuspend(&pdev->dev); | 1415 | pm_runtime_use_autosuspend(&pdev->dev); |
1419 | pm_runtime_set_autosuspend_delay(&pdev->dev, SPI_AUTOSUSPEND_TIMEOUT); | 1416 | pm_runtime_set_autosuspend_delay(&pdev->dev, SPI_AUTOSUSPEND_TIMEOUT); |
1420 | pm_runtime_enable(&pdev->dev); | 1417 | pm_runtime_enable(&pdev->dev); |