diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-12-25 14:04:05 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-03 02:46:53 -0500 |
commit | 86f75c65ffc028df28e6b5a6f6574a5beea97310 (patch) | |
tree | dd9e6348d4fea9d84413c80e44283e9fbeb7fbcc | |
parent | 405e64a1cdd953f2f0474d2f131757226bcbc401 (diff) |
pinctrl: utils: Delete an error message for a failed memory allocation in pinctrl_utils_add_map_configs()
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/pinctrl-utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-utils.c b/drivers/pinctrl/pinctrl-utils.c index 9189fbafb102..f2bcbf62c03d 100644 --- a/drivers/pinctrl/pinctrl-utils.c +++ b/drivers/pinctrl/pinctrl-utils.c | |||
@@ -83,10 +83,8 @@ int pinctrl_utils_add_map_configs(struct pinctrl_dev *pctldev, | |||
83 | 83 | ||
84 | dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), | 84 | dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), |
85 | GFP_KERNEL); | 85 | GFP_KERNEL); |
86 | if (!dup_configs) { | 86 | if (!dup_configs) |
87 | dev_err(pctldev->dev, "kmemdup(configs) failed\n"); | ||
88 | return -ENOMEM; | 87 | return -ENOMEM; |
89 | } | ||
90 | 88 | ||
91 | (*map)[*num_maps].type = type; | 89 | (*map)[*num_maps].type = type; |
92 | (*map)[*num_maps].data.configs.group_or_pin = group; | 90 | (*map)[*num_maps].data.configs.group_or_pin = group; |