Browse Source

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>
Markus Elfring 7 years ago
parent
commit
2c7d759820
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/ata/sata_dwc_460ex.c

+ 0 - 1
drivers/ata/sata_dwc_460ex.c

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