Skip to contentSkip to conversation

gpio-ml-ioh: Delete an error message for a failed memory allocation in ioh_gpio_probe()

PATCH In review SF Markus Elfring 2 participants 2 messages Feb 10, 2018 – Feb 22, 2018

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

PATCH 1/1 gpio-ml-ioh: Delete an error message for a failed memory allocation in ioh_gpio_probe()

From: Markus Elfring <[email protected]>
Date: Sat, 10 Feb 2018 22:27:15 +0100

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

This issue was detected by using the Coccinelle software.

---
 drivers/gpio/gpio-ml-ioh.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-ml-ioh.c +0 -1
index 4b80e996d976..b3678bd1c120 100644
@@ -445,7 +445,6 @@ static int ioh_gpio_probe(struct pci_dev *pdev,
 
 	chip_save = kzalloc(sizeof(*chip) * 8, GFP_KERNEL);
 	if (chip_save = NULL) {
-		dev_err(&pdev->dev, "%s : kzalloc failed", __func__);
 		ret = -ENOMEM;
 		goto err_kzalloc;
 	}
Signature · 1 line
2.16.1