Commit 63e57b95 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-pinctrl: remove unnecessary 'out of memory' message

Messages when memory allocation fails are not needed at all
and checkpatch script complains about them. Remove one in this
driver code.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3de9923
...@@ -379,10 +379,8 @@ static int rt2880_pinmux_pins(struct rt2880_priv *p) ...@@ -379,10 +379,8 @@ static int rt2880_pinmux_pins(struct rt2880_priv *p)
/* strlen("ioXY") + 1 = 5 */ /* strlen("ioXY") + 1 = 5 */
char *name = devm_kzalloc(p->dev, 5, GFP_KERNEL); char *name = devm_kzalloc(p->dev, 5, GFP_KERNEL);
if (!name) { if (!name)
dev_err(p->dev, "Failed to allocate pad name\n");
return -ENOMEM; return -ENOMEM;
}
snprintf(name, 5, "io%d", i); snprintf(name, 5, "io%d", i);
p->pads[i].number = i; p->pads[i].number = i;
p->pads[i].name = name; p->pads[i].name = name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment