projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e643d8
)
gpio: aspeed: remove redundant return value check
author
Wei Yongjun
<weiyongjun1@huawei.com>
Wed, 21 Sep 2016 15:07:56 +0000
(15:07 +0000)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 23 Sep 2016 13:11:09 +0000
(15:11 +0200)
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>
drivers/gpio/gpio-aspeed.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpio/gpio-aspeed.c
b/drivers/gpio/gpio-aspeed.c
index 8aa340677f65190661926230368cc47ba2a7b8a3..03a5925a423c93dbb9e381be0a1da6300990d9ac 100644
(file)
--- 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)
return -ENOMEM;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res)
- return -ENXIO;
-
gpio->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(gpio->base))
return PTR_ERR(gpio->base);