Skip to contentSkip to conversation

block-sx8: Delete an error message for a failed memory allocation in carm_init_one()

PATCH New SF Markus Elfring 1 participant 1 message Aug 7, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block-sx8: Delete an error message for a failed memory allocation in carm_init_one()

From: Markus Elfring <[email protected]>
Date: Mon, 7 Aug 2017 17:14:21 +0200

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---
 drivers/block/sx8.c | 2 --
 1 file changed, 2 deletions(-)
drivers/block/sx8.c +0 -2
index 08586dc14e85..4b1800f6724d 100644
@@ -1605,8 +1605,6 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	host = kzalloc(sizeof(*host), GFP_KERNEL);
 	if (!host) {
-		printk(KERN_ERR DRV_NAME "(%s): memory alloc failure\n",
-		       pci_name(pdev));
 		rc = -ENOMEM;
 		goto err_out_regions;
 	}
Signature · 1 line
2.13.4