pinctrl: core: Delete an error message
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 26 Aug 2017 18:15:21 +0000 (20:15 +0200)
committerLinus 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

index 60f82c6..56fbe4c 100644 (file)
@@ -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;
                }