mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-07 21:24:00 +08:00
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: Stefan Chulski <stefanc@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f704177e47
commit
9ad78d81cb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user