Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28a26945 authored by Varka Bhadram's avatar Varka Bhadram Committed by Felipe Balbi
Browse files

usb: phy: rcar-usb: remove duplicate check on resource



Sanity check on resource happening with devm_ioremap_resource().

Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 687f16b8
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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);
	}

	priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
	if (!priv)