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

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
...@@ -102,10 +102,8 @@ static int serial8250_em_probe(struct platform_device *pdev) ...@@ -102,10 +102,8 @@ static int serial8250_em_probe(struct platform_device *pdev)
} }
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv)
dev_err(&pdev->dev, "unable to allocate private data\n");
return -ENOMEM; return -ENOMEM;
}
priv->sclk = devm_clk_get(&pdev->dev, "sclk"); priv->sclk = devm_clk_get(&pdev->dev, "sclk");
if (IS_ERR(priv->sclk)) { if (IS_ERR(priv->sclk)) {
......
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