summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_mpc52xx.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-02-16 13:34:53 +0300
committerTejun Heo <tj@kernel.org>2018-02-18 16:23:25 +0300
commit533013d69b509b26ff1b38a7d494db54549ac71b (patch)
tree94353e696e9fc6269aefd44acf88cfa42c3ffec7 /drivers/ata/pata_mpc52xx.c
parent2c7d7598206d090b48796e66e77a40ed54537310 (diff)
downloadlinux-533013d69b509b26ff1b38a7d494db54549ac71b.tar.xz
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_mpc52xx.c')
-rw-r--r--drivers/ata/pata_mpc52xx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c
index 9730125530f6..f1d352d5f128 100644
--- a/drivers/ata/pata_mpc52xx.c
+++ b/drivers/ata/pata_mpc52xx.c
@@ -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;
}