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
@@ -135,7 +135,6 @@ static int usb_console_setup(struct console *co, char *options)
|
||||
tty = kzalloc(sizeof(*tty), GFP_KERNEL);
|
||||
if (!tty) {
|
||||
retval = -ENOMEM;
|
||||
dev_err(&port->dev, "no more memory\n");
|
||||
goto reset_open_count;
|
||||
}
|
||||
kref_init(&tty->kref);
|
||||
@@ -144,7 +143,6 @@ static int usb_console_setup(struct console *co, char *options)
|
||||
tty->index = co->index;
|
||||
if (tty_init_termios(tty)) {
|
||||
retval = -ENOMEM;
|
||||
dev_err(&port->dev, "no more memory\n");
|
||||
goto free_tty;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user