Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Linus Walleij
86f75c65 405e64a1

+1 -3
+1 -3
drivers/pinctrl/pinctrl-utils.c
··· 83 83 84 84 dup_configs = kmemdup(configs, num_configs * sizeof(*dup_configs), 85 85 GFP_KERNEL); 86 - if (!dup_configs) { 87 - dev_err(pctldev->dev, "kmemdup(configs) failed\n"); 86 + if (!dup_configs) 88 87 return -ENOMEM; 89 - } 90 88 91 89 (*map)[*num_maps].type = type; 92 90 (*map)[*num_maps].data.configs.group_or_pin = group;