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:
687f16b
)
usb: phy: rcar-usb: remove duplicate check on resource
author
Varka Bhadram
<
[email protected]
>
Wed, 29 Oct 2014 16:00:17 +0000
(21:30 +0530)
committer
Felipe Balbi
<
[email protected]
>
Mon, 3 Nov 2014 16:01:21 +0000
(10:01 -0600)
Sanity check on resource happening with devm_ioremap_resource().
Signed-off-by: Varka Bhadram <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/phy/phy-rcar-usb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/phy/phy-rcar-usb.c
b/drivers/usb/phy/phy-rcar-usb.c
index 48795962014167135385393e7361eb47723b4918..1e09b83778853829df6ab1a8bd8b0e31412e9493 100644
(file)
--- a/
drivers/usb/phy/phy-rcar-usb.c
+++ b/
drivers/usb/phy/phy-rcar-usb.c
@@
-195,11
+195,9
@@
static int rcar_usb_phy_probe(struct platform_device *pdev)
return PTR_ERR(reg0);
res1 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
- if (res1) {
- reg1 = devm_ioremap_resource(dev, res1);
- if (IS_ERR(reg1))
- return PTR_ERR(reg1);
- }
+ reg1 = devm_ioremap_resource(dev, res1);
+ if (IS_ERR(reg1))
+ return PTR_ERR(reg1);
priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
if (!priv)