USB: serial: remove redundant OOM messages
Remove redundant error messages on allocation failures, which have already been logged. Cc: Joe Perches <joe@perches.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4d5147ec90
commit
10c642d077
@ -1695,11 +1695,8 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)
|
||||
|
||||
|
||||
priv = kzalloc(sizeof(struct ftdi_private), GFP_KERNEL);
|
||||
if (!priv) {
|
||||
dev_err(&port->dev, "%s- kmalloc(%Zd) failed.\n", __func__,
|
||||
sizeof(struct ftdi_private));
|
||||
if (!priv)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
mutex_init(&priv->cfg_lock);
|
||||
|
||||
|
Reference in New Issue
Block a user