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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)