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

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>

authored by

Markus Elfring and committed by
Linus Walleij
3da941b0 e210a0a9

+1 -3
+1 -3
drivers/pinctrl/pinctrl-at91.c
··· 1050 1050 info->nmux = size / gpio_banks; 1051 1051 1052 1052 info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL); 1053 - if (!info->mux_mask) { 1054 - dev_err(info->dev, "could not alloc mux_mask\n"); 1053 + if (!info->mux_mask) 1055 1054 return -ENOMEM; 1056 - } 1057 1055 1058 1056 ret = of_property_read_u32_array(np, "atmel,mux-mask", 1059 1057 info->mux_mask, size);