diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-10 16:27:15 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-02-22 09:25:39 -0500 |
commit | 4aed95793f9bd492380e6165fa6d3b02263017c4 (patch) | |
tree | 08e95a3180f18cb63ee7cf8be02ef4a6a955a655 /drivers/gpio/gpio-ml-ioh.c | |
parent | f97364c9b89ea0e60f3fa2e9d6e7bdf9627b891b (diff) |
gpio-ml-ioh: Delete an error message
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ml-ioh.c')
-rw-r--r-- | drivers/gpio/gpio-ml-ioh.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index 4b80e996d976..b3678bd1c120 100644 --- a/drivers/gpio/gpio-ml-ioh.c +++ b/drivers/gpio/gpio-ml-ioh.c | |||
@@ -445,7 +445,6 @@ static int ioh_gpio_probe(struct pci_dev *pdev, | |||
445 | 445 | ||
446 | chip_save = kzalloc(sizeof(*chip) * 8, GFP_KERNEL); | 446 | chip_save = kzalloc(sizeof(*chip) * 8, GFP_KERNEL); |
447 | if (chip_save == NULL) { | 447 | if (chip_save == NULL) { |
448 | dev_err(&pdev->dev, "%s : kzalloc failed", __func__); | ||
449 | ret = -ENOMEM; | 448 | ret = -ENOMEM; |
450 | goto err_kzalloc; | 449 | goto err_kzalloc; |
451 | } | 450 | } |