Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Markus Elfring and committed by
Linus Walleij
5896c8d7 3da941b0

+1 -3
+1 -3
drivers/pinctrl/pinctrl-palmas.c
··· 1012 1012 } 1013 1013 1014 1014 pci = devm_kzalloc(&pdev->dev, sizeof(*pci), GFP_KERNEL); 1015 - if (!pci) { 1016 - dev_err(&pdev->dev, "Malloc for pci failed\n"); 1015 + if (!pci) 1017 1016 return -ENOMEM; 1018 - } 1019 1017 1020 1018 pci->dev = &pdev->dev; 1021 1019 pci->palmas = dev_get_drvdata(pdev->dev.parent);