projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68b42e
)
pinctrl: core: Delete an error message
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 26 Aug 2017 18:15:21 +0000
(20:15 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 31 Aug 2017 13:44:16 +0000
(15:44 +0200)
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>
drivers/pinctrl/core.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/core.c
b/drivers/pinctrl/core.c
index 60f82c67b92d66d207bfb226b9685fe1d5701915..56fbe4c3e800ef78287d6bbc8433ec6724865654 100644
(file)
--- 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;
}