Commit 86b20dfe authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman
Browse files

serial: 8250_em: Remove out-of-memory message



devm_kzalloc() already warns if allocation fails; remove duplicate
message.

Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 68952076
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -102,10 +102,8 @@ static int serial8250_em_probe(struct platform_device *pdev)
	}

	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
	if (!priv) {
		dev_err(&pdev->dev, "unable to allocate private data\n");
	if (!priv)
		return -ENOMEM;
	}

	priv->sclk = devm_clk_get(&pdev->dev, "sclk");
	if (IS_ERR(priv->sclk)) {