summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_octeon.c
diff options
context:
space:
mode:
authorBelen Sarabia <belensarabia@gmail.com>2017-02-27 22:41:18 +0100
committerTejun Heo <tj@kernel.org>2017-03-06 21:40:59 +0100
commit487d499c6758d81954d684f1dd8edc54257cad0f (patch)
tree67de1811ee0643c57eeb4a6730fa4bd932c5220d /drivers/ata/ahci_octeon.c
parentata: constify of_device_id structures (diff)
downloadlinux-487d499c6758d81954d684f1dd8edc54257cad0f.tar.xz
linux-487d499c6758d81954d684f1dd8edc54257cad0f.zip
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/ahci_octeon.c')
-rw-r--r--drivers/ata/ahci_octeon.c5
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);