提交 5896c8d7 编写于 作者: M Markus Elfring 提交者: Linus Walleij

pinctrl: palmas: Delete an error message for a failed memory allocation in palmas_pinctrl_probe()

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

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 3da941b0
...@@ -1012,10 +1012,8 @@ static int palmas_pinctrl_probe(struct platform_device *pdev) ...@@ -1012,10 +1012,8 @@ static int palmas_pinctrl_probe(struct platform_device *pdev)
} }
pci = devm_kzalloc(&pdev->dev, sizeof(*pci), GFP_KERNEL); pci = devm_kzalloc(&pdev->dev, sizeof(*pci), GFP_KERNEL);
if (!pci) { if (!pci)
dev_err(&pdev->dev, "Malloc for pci failed\n");
return -ENOMEM; return -ENOMEM;
}
pci->dev = &pdev->dev; pci->dev = &pdev->dev;
pci->palmas = dev_get_drvdata(pdev->dev.parent); pci->palmas = dev_get_drvdata(pdev->dev.parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册