tty: core: Remove redundant oom message

kmalloc() already emits a diagnostic for failed allocations; remove
tty-specific message.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Peter Hurley 2015-11-08 13:01:11 -05:00 committed by Greg Kroah-Hartman
parent 076fe30334
commit 25080652a2
1 changed files with 1 additions and 3 deletions

View File

@ -1580,10 +1580,8 @@ void tty_free_termios(struct tty_struct *tty)
tp = tty->driver->termios[idx];
if (tp == NULL) {
tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL);
if (tp == NULL) {
pr_warn("tty: no memory to save termios state.\n");
if (tp == NULL)
return;
}
tty->driver->termios[idx] = tp;
}
*tp = tty->termios;