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

sata_dwc_460ex: Delete an error message for a failed memory allocation in sata_dwc_port_start()

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>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Markus Elfring and committed by
Tejun Heo
2c7d7598 b02b5491

-1
-1
drivers/ata/sata_dwc_460ex.c
··· 901 901 /* Allocate Port Struct */ 902 902 hsdevp = kzalloc(sizeof(*hsdevp), GFP_KERNEL); 903 903 if (!hsdevp) { 904 - dev_err(ap->dev, "%s: kmalloc failed for hsdevp\n", __func__); 905 904 err = -ENOMEM; 906 905 goto CLEANUP; 907 906 }