Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;