Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Tejun Heo
533013d6 2c7d7598

-1
-1
drivers/ata/pata_mpc52xx.c
··· 738 738 /* Prepare our private structure */ 739 739 priv = devm_kzalloc(&op->dev, sizeof(*priv), GFP_ATOMIC); 740 740 if (!priv) { 741 - dev_err(&op->dev, "error allocating private structure\n"); 742 741 rv = -ENOMEM; 743 742 goto err1; 744 743 }