Commit 533013d6 authored by Markus Elfring's avatar Markus Elfring Committed by Tejun Heo

pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 2c7d7598
...@@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op) ...@@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op)
/* Prepare our private structure */ /* Prepare our private structure */
priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC); priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC);
if (!priv) { if (!priv) {
dev_err(&op->dev, "error allocating private structure\n");
rv = -ENOMEM; rv = -ENOMEM;
goto err1; goto err1;
} }
......
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