Skip to content

Commit f68f848

Browse files
elfringlinusw
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent d68b42e commit f68f848

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/pinctrl/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1380,7 +1380,6 @@ int pinctrl_register_map(const struct pinctrl_map *maps, unsigned num_maps,
13801380
maps_node->maps = kmemdup(maps, sizeof(*maps) * num_maps,
13811381
GFP_KERNEL);
13821382
if (!maps_node->maps) {
1383-
pr_err("failed to duplicate mapping table\n");
13841383
kfree(maps_node);
13851384
return -ENOMEM;
13861385
}

0 commit comments

Comments
 (0)