summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2014-10-29 16:00:17 (GMT)
committerFelipe Balbi <balbi@ti.com>2014-11-03 16:01:21 (GMT)
commit28a26945df3ac3a4c80eef48b73be88fb53744ae (patch)
tree6c83adad01ac94610f0e29e7be1006c84a8a2f0b /drivers
parent687f16b8599bed84dc4484a70509b9443dfc3baa (diff)
downloadlinux-28a26945df3ac3a4c80eef48b73be88fb53744ae.tar.xz
usb: phy: rcar-usb: remove duplicate check on resource
Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram <varkab@cdac.in> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/phy/phy-rcar-usb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rcar-usb.c
index 4879596..1e09b83 100644
--- 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)