projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f7908
)
pinctrl: at91-pio4: Remove redundant return value check
author
Wei Yongjun
<
[email protected]
>
Wed, 11 Jul 2018 12:34:07 +0000
(12:34 +0000)
committer
Linus Walleij
<
[email protected]
>
Mon, 16 Jul 2018 12:46:11 +0000
(14:46 +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 <
[email protected]
>
Reviewed-by: Alexandre Belloni <
[email protected]
>
Acked-by: Ludovic Desroches <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/pinctrl/pinctrl-at91-pio4.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-at91-pio4.c
b/drivers/pinctrl/pinctrl-at91-pio4.c
index 8f061971a7d116701a0657ebfe3308b69687877e..ef7ab208b951eeb307b73191f373b88ecd8462a3 100644
(file)
--- a/
drivers/pinctrl/pinctrl-at91-pio4.c
+++ b/
drivers/pinctrl/pinctrl-at91-pio4.c
@@
-971,10
+971,6
@@
static int atmel_pinctrl_probe(struct platform_device *pdev)
atmel_pioctrl->npins = atmel_pioctrl->nbanks * ATMEL_PIO_NPINS_PER_BANK;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(dev, "unable to get atmel pinctrl resource\n");
- return -EINVAL;
- }
atmel_pioctrl->reg_base = devm_ioremap_resource(dev, res);
if (IS_ERR(atmel_pioctrl->reg_base))
return -EINVAL;