diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-12-07 14:00:40 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-09 17:04:56 +0000 |
commit | f885135ab6047dd159067d15c9a5de1a67de4e27 (patch) | |
tree | 601bb3bb56eee0e178beef4916aa983f431f8974 /drivers/spi | |
parent | 9a3ced19d8da908234fe9879ee1c0609c8ed21e8 (diff) |
spi: coldfire-qspi: remove redundant return value check of platform_get_resource()
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-coldfire-qspi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-coldfire-qspi.c b/drivers/spi/spi-coldfire-qspi.c index 9ee81a4c735..cabed8f9119 100644 --- a/drivers/spi/spi-coldfire-qspi.c +++ b/drivers/spi/spi-coldfire-qspi.c @@ -397,12 +397,6 @@ static int mcfqspi_probe(struct platform_device *pdev) mcfqspi = spi_master_get_devdata(master); res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_dbg(&pdev->dev, "platform_get_resource failed\n"); - status = -ENXIO; - goto fail0; - } - mcfqspi->iobase = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(mcfqspi->iobase)) { status = PTR_ERR(mcfqspi->iobase); |