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:
Stefan Chulski 2021-02-14 15:38:36 +02:00 committed by David S. Miller
parent f704177e47
commit 9ad78d81cb
1 changed files with 1 additions and 3 deletions

View File

@ -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)