gpio-ml-ioh: Delete an error message for a failed memory allocation in ioh_gpio_probe()
Subsystems (3)
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.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/gpio/gpio-ml-ioh.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpio/gpio-ml-ioh.c +0 -1
@@ -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
Quoted 8 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Sat, 10 Feb 2018 22:27:15 +0100Omit 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 <[email protected]>
Patch applied.
Yours,
Linus Walleij