forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
3da941b048
commit
5896c8d7c8
|
@ -1012,10 +1012,8 @@ static int palmas_pinctrl_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
pci = devm_kzalloc(&pdev->dev, sizeof(*pci), GFP_KERNEL);
|
||||
if (!pci) {
|
||||
dev_err(&pdev->dev, "Malloc for pci failed\n");
|
||||
if (!pci)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pci->dev = &pdev->dev;
|
||||
pci->palmas = dev_get_drvdata(pdev->dev.parent);
|
||||
|
|
Loading…
Reference in New Issue
Block a user