OSDN Git Service

sata_dwc_460ex: Delete an error message for a failed memory allocation in sata_dwc_po...
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 15 Feb 2018 21:15:25 +0000 (22:15 +0100)
committerTejun Heo <tj@kernel.org>
Sun, 18 Feb 2018 13:21:31 +0000 (05:21 -0800)
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>
drivers/ata/sata_dwc_460ex.c

index 6af4ec3..ce3d667 100644 (file)
@@ -901,7 +901,6 @@ static int sata_dwc_port_start(struct ata_port *ap)
        /* Allocate Port Struct */
        hsdevp = kzalloc(sizeof(*hsdevp), GFP_KERNEL);
        if (!hsdevp) {
-               dev_err(ap->dev, "%s: kmalloc failed for hsdevp\n", __func__);
                err = -ENOMEM;
                goto CLEANUP;
        }