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: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sergio Paracuellos 2018-06-08 14:16:33 +02:00 committed by Greg Kroah-Hartman
parent c3de99239e
commit 63e57b953f

View file

@ -379,10 +379,8 @@ static int rt2880_pinmux_pins(struct rt2880_priv *p)
/* strlen("ioXY") + 1 = 5 */
char *name = devm_kzalloc(p->dev, 5, GFP_KERNEL);
if (!name) {
dev_err(p->dev, "Failed to allocate pad name\n");
if (!name)
return -ENOMEM;
}
snprintf(name, 5, "io%d", i);
p->pads[i].number = i;
p->pads[i].name = name;