Commit 25080652 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

tty: core: Remove redundant oom message

kmalloc() already emits a diagnostic for failed allocations; remove
tty-specific message.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 076fe303
...@@ -1580,10 +1580,8 @@ void tty_free_termios(struct tty_struct *tty) ...@@ -1580,10 +1580,8 @@ void tty_free_termios(struct tty_struct *tty)
tp = tty->driver->termios[idx]; tp = tty->driver->termios[idx];
if (tp == NULL) { if (tp == NULL) {
tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL); tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL);
if (tp == NULL) { if (tp == NULL)
pr_warn("tty: no memory to save termios state.\n");
return; return;
}
tty->driver->termios[idx] = tp; tty->driver->termios[idx] = tp;
} }
*tp = tty->termios; *tp = tty->termios;
......
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