diff options
author | Belen Sarabia <belensarabia@gmail.com> | 2017-02-28 00:41:18 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-03-06 23:40:59 +0300 |
commit | 487d499c6758d81954d684f1dd8edc54257cad0f (patch) | |
tree | 67de1811ee0643c57eeb4a6730fa4bd932c5220d /drivers/ata | |
parent | e3779f6a4e7359bc0f83c3e2d34702a6c495e66e (diff) | |
download | linux-487d499c6758d81954d684f1dd8edc54257cad0f.tar.xz |
Delete redundant return value check of platform_get_resource()
Delete error handling from the result of a call to platform_get_resource()
when the value is immediately passed to devm_ioremap_resource().
Signed-off-by: Belen Sarabia <belensarabia@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/ahci_octeon.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/ata/ahci_octeon.c b/drivers/ata/ahci_octeon.c index ea865fe953e1..5a44e089c6bb 100644 --- a/drivers/ata/ahci_octeon.c +++ b/drivers/ata/ahci_octeon.c @@ -38,11 +38,6 @@ static int ahci_octeon_probe(struct platform_device *pdev) int ret; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(&pdev->dev, "Platform resource[0] is missing\n"); - return -ENODEV; - } - base = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base); |