diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-12-23 14:44:27 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-03 02:46:49 -0500 |
commit | 3da941b048bd105fd2803f0e0cd77d59f731fafc (patch) | |
tree | 3b00661201f2c734f5cd71c5ccb0cf92998f9b06 | |
parent | e210a0a9489d01223ef02627f95449ba73dde3a0 (diff) |
pinctrl: at91: Delete an error message for a failed memory allocation in at91_pinctrl_mux_mask()
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-at91.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 03492e3c09fa..297f1d161211 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c | |||
@@ -1050,10 +1050,8 @@ static int at91_pinctrl_mux_mask(struct at91_pinctrl *info, | |||
1050 | info->nmux = size / gpio_banks; | 1050 | info->nmux = size / gpio_banks; |
1051 | 1051 | ||
1052 | info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL); | 1052 | info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL); |
1053 | if (!info->mux_mask) { | 1053 | if (!info->mux_mask) |
1054 | dev_err(info->dev, "could not alloc mux_mask\n"); | ||
1055 | return -ENOMEM; | 1054 | return -ENOMEM; |
1056 | } | ||
1057 | 1055 | ||
1058 | ret = of_property_read_u32_array(np, "atmel,mux-mask", | 1056 | ret = of_property_read_u32_array(np, "atmel,mux-mask", |
1059 | info->mux_mask, size); | 1057 | info->mux_mask, size); |