pinctrl: mvebu: Delete an error message for a failed memory allocation in mvebu_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
c2584927b7
commit
bca50ce005
1 changed files with 2 additions and 3 deletions
|
@ -636,10 +636,9 @@ int mvebu_pinctrl_probe(struct platform_device *pdev)
|
||||||
*/
|
*/
|
||||||
size = pctl->num_groups * sizeof(*pctl->groups) + noname * 8;
|
size = pctl->num_groups * sizeof(*pctl->groups) + noname * 8;
|
||||||
p = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
|
p = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
|
||||||
if (!p) {
|
if (!p)
|
||||||
dev_err(&pdev->dev, "failed to alloc group data\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
pctl->groups = p;
|
pctl->groups = p;
|
||||||
noname_buf = p + pctl->num_groups * sizeof(*pctl->groups);
|
noname_buf = p + pctl->num_groups * sizeof(*pctl->groups);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue