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

pinctrl: core: 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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 d68b42e3
...@@ -1380,7 +1380,6 @@ int pinctrl_register_map(const struct pinctrl_map *maps, unsigned num_maps, ...@@ -1380,7 +1380,6 @@ int pinctrl_register_map(const struct pinctrl_map *maps, unsigned num_maps,
maps_node->maps = kmemdup(maps, sizeof(*maps) * num_maps, maps_node->maps = kmemdup(maps, sizeof(*maps) * num_maps,
GFP_KERNEL); GFP_KERNEL);
if (!maps_node->maps) { if (!maps_node->maps) {
pr_err("failed to duplicate mapping table\n");
kfree(maps_node); kfree(maps_node);
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册