diff options
author | Belen Sarabia <belensarabia@gmail.com> | 2017-03-25 14:26:47 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-04-27 04:25:05 -0400 |
commit | 119d53d44cb0da2e3140106a9e359fc53bd6d837 (patch) | |
tree | a287defd691d1a487078c4138dbd643a95c948a3 | |
parent | 85fdaf8eb9bbec1f0f8a52fd5d85659d60738816 (diff) |
mfd: ipaq-micro: Delete redundant return value check of platform_get_resource()
devm_ioremap_resource does checks on the resource. No need to
duplicate this in the driver.
Signed-off-by: Belén Sarabia <belensarabia@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/ipaq-micro.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index df16fd1df68b..124aad2b1d02 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c | |||
@@ -400,9 +400,6 @@ static int __init micro_probe(struct platform_device *pdev) | |||
400 | micro->dev = &pdev->dev; | 400 | micro->dev = &pdev->dev; |
401 | 401 | ||
402 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 402 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
403 | if (!res) | ||
404 | return -EINVAL; | ||
405 | |||
406 | micro->base = devm_ioremap_resource(&pdev->dev, res); | 403 | micro->base = devm_ioremap_resource(&pdev->dev, res); |
407 | if (IS_ERR(micro->base)) | 404 | if (IS_ERR(micro->base)) |
408 | return PTR_ERR(micro->base); | 405 | return PTR_ERR(micro->base); |