mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
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>
This commit is contained in:
parent
e210a0a948
commit
3da941b048
@ -1050,10 +1050,8 @@ static int at91_pinctrl_mux_mask(struct at91_pinctrl *info,
|
|||||||
info->nmux = size / gpio_banks;
|
info->nmux = size / gpio_banks;
|
||||||
|
|
||||||
info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL);
|
info->mux_mask = devm_kzalloc(info->dev, sizeof(u32) * size, GFP_KERNEL);
|
||||||
if (!info->mux_mask) {
|
if (!info->mux_mask)
|
||||||
dev_err(info->dev, "could not alloc mux_mask\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
ret = of_property_read_u32_array(np, "atmel,mux-mask",
|
ret = of_property_read_u32_array(np, "atmel,mux-mask",
|
||||||
info->mux_mask, size);
|
info->mux_mask, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user