From: Peter Hurley Date: Sun, 8 Nov 2015 18:01:17 +0000 (-0500) Subject: tty: Remove unset_locked_termios() error message X-Git-Tag: v4.14-rc1~4042^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f658dca95075e0b6823650968edad68538494ab8;p=platform%2Fkernel%2Flinux-rpi.git tty: Remove unset_locked_termios() error message With the refactor of 'locked' from parameter to local, it's now obvious locked cannot be NULL. Remove entire conditional. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index b41c708..e54879d 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -247,11 +247,6 @@ static void unset_locked_termios(struct tty_struct *tty, struct ktermios *old) #define NOSET_MASK(x, y, z) (x = ((x) & ~(z)) | ((y) & (z))) - if (!locked) { - printk(KERN_WARNING "Warning?!? termios_locked is NULL.\n"); - return; - } - NOSET_MASK(termios->c_iflag, old->c_iflag, locked->c_iflag); NOSET_MASK(termios->c_oflag, old->c_oflag, locked->c_oflag); NOSET_MASK(termios->c_cflag, old->c_cflag, locked->c_cflag);