phy: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f3f5972f9e
commit
7520bee2f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue