浏览代码

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>
Markus Elfring 7 年之前
父节点
当前提交
4aed95793f
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/gpio/gpio-ml-ioh.c

+ 0 - 1
drivers/gpio/gpio-ml-ioh.c

@@ -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;
 	}