Commit 9ad78d81 authored by Stefan Chulski's avatar Stefan Chulski Committed by David S. Miller

net: mvpp2: improve mvpp2_get_sram return

Use PTR_ERR_OR_ZERO instead of IS_ERR and PTR_ERR.
Non functional change.
Signed-off-by: default avatarStefan Chulski <stefanc@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f704177e
......@@ -7277,10 +7277,8 @@ static int mvpp2_get_sram(struct platform_device *pdev,
}
priv->cm3_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(priv->cm3_base))
return PTR_ERR(priv->cm3_base);
return 0;
return PTR_ERR_OR_ZERO(priv->cm3_base);
}
static int mvpp2_probe(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment