mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
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:
parent
c3de99239e
commit
63e57b953f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user