diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-21 11:07:56 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-09-23 09:11:09 -0400 |
commit | 83626bbdf5ca31257066b05db5a38c846ae1e19f (patch) | |
tree | 3410d8d9985b392838aa00fdd34f7e7e58658834 | |
parent | 6e643d8ddf0e923ea0601e1dc014ff0d3b7b8260 (diff) |
gpio: aspeed: remove redundant return value check
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 <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-aspeed.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 8aa340677f65..03a5925a423c 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c | |||
@@ -409,9 +409,6 @@ static int __init aspeed_gpio_probe(struct platform_device *pdev) | |||
409 | return -ENOMEM; | 409 | return -ENOMEM; |
410 | 410 | ||
411 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 411 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
412 | if (!res) | ||
413 | return -ENXIO; | ||
414 | |||
415 | gpio->base = devm_ioremap_resource(&pdev->dev, res); | 412 | gpio->base = devm_ioremap_resource(&pdev->dev, res); |
416 | if (IS_ERR(gpio->base)) | 413 | if (IS_ERR(gpio->base)) |
417 | return PTR_ERR(gpio->base); | 414 | return PTR_ERR(gpio->base); |