Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1720687 > unrolled thread

[PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-08-26 20:30 +0200
Last post2017-08-31 15:50 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pinctrl: core: Delete an error message for a failed memory  allocation in pinctrl_register_map() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-08-26 20:30 +0200
    Re: [PATCH] pinctrl: core: Delete an error message for a failed  memory allocation in pinctrl_register_map() Linus Walleij <linus.walleij@linaro.org> - 2017-08-31 15:50 +0200

#1720687 — [PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-08-26 20:30 +0200
Subject[PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()
Message-ID<uiO0i-4Ek-7@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 26 Aug 2017 20:15:21 +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>
---
 drivers/pinctrl/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index c5e2c5705058..350f8962831e 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1380,7 +1380,6 @@ int pinctrl_register_map(struct pinctrl_map const *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;
 		}
-- 
2.14.0

[toc] | [next] | [standalone]


#1724240 — Re: [PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()

FromLinus Walleij <linus.walleij@linaro.org>
Date2017-08-31 15:50 +0200
SubjectRe: [PATCH] pinctrl: core: Delete an error message for a failed memory allocation in pinctrl_register_map()
Message-ID<uky13-6he-9@gated-at.bofh.it>
In reply to#1720687
On Sat, Aug 26, 2017 at 8:20 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:

> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 26 Aug 2017 20:15:21 +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>

Patch applied.

Yours,
Linus Walleij

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web