summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-26 20:15:21 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-08-31 15:44:16 +0200
commitf68f8481316cc13a2bdf86efe49e251ac7c8946f (patch)
treeed1555c02707ca5d62d70660ab6adced900da48f
parentd68b42e30bbacd24354d644f430d088435b15e83 (diff)
downloadlinux-stable-f68f8481316cc13a2bdf86efe49e251ac7c8946f.tar.gz
linux-stable-f68f8481316cc13a2bdf86efe49e251ac7c8946f.tar.bz2
linux-stable-f68f8481316cc13a2bdf86efe49e251ac7c8946f.zip
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 60f82c67b92d..56fbe4c3e800 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -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,
GFP_KERNEL);
if (!maps_node->maps) {
- pr_err("failed to duplicate mapping table\n");
kfree(maps_node);
return -ENOMEM;
}