pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()
Subsystems (2)
PATCH 1/1 pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe()
From: Markus Elfring <[email protected]>
Date: Fri, 16 Feb 2018 11:34:53 +0100
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/ata/pata_mpc52xx.c | 1 - 1 file changed, 1 deletion(-)
drivers/ata/pata_mpc52xx.c +0 -1
@@ -738,7 +738,6 @@ static int mpc52xx_ata_probe(struct platform_device *op)/* Prepare our private structure */ priv =devm_kzalloc (&op->dev,sizeof (*priv),GFP_ATOMIC );if (!priv) { -dev_err (&op->dev,"error allocating private structure\n" ); rv = -ENOMEM ; goto err1; }
Signature · 1 line
2.16.1
Tejun Heo
AppliedQuoted 8 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Fri, 16 Feb 2018 11:34:53 +0100Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Applied to libata/for-4.17.
Thanks.
Signature · 1 line
tejun