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

Commit f43a510d authored by Jiri Slaby's avatar Jiri Slaby Committed by Greg Kroah-Hartman
Browse files

tty: char: mxser, remove unnecessary tty test



Stanse found unnecessary test in mxser_startup.

tty is dereferenced earlier, the test is superfluous. Remove it.

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 20904363
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -895,7 +895,6 @@ static int mxser_activate(struct tty_port *port, struct tty_struct *tty)
	if (inb(info->ioaddr + UART_LSR) == 0xff) {
		spin_unlock_irqrestore(&info->slock, flags);
		if (capable(CAP_SYS_ADMIN)) {
			if (tty)
			set_bit(TTY_IO_ERROR, &tty->flags);
			return 0;
		} else