Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] tty release_dev(): remove dead code

Remove dead code from tty_io.c release_dev()

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Paul Fulghum and committed by
Linus Torvalds
14a6283e 9453a5ad

+1 -2
+1 -2
drivers/char/tty_io.c
··· 1740 1740 { 1741 1741 struct tty_struct *tty, *o_tty; 1742 1742 int pty_master, tty_closing, o_tty_closing, do_sleep; 1743 - int devpts_master, devpts; 1743 + int devpts; 1744 1744 int idx; 1745 1745 char buf[64]; 1746 1746 unsigned long flags; ··· 1757 1757 pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY && 1758 1758 tty->driver->subtype == PTY_TYPE_MASTER); 1759 1759 devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0; 1760 - devpts_master = pty_master && devpts; 1761 1760 o_tty = tty->link; 1762 1761 1763 1762 #ifdef TTY_PARANOIA_CHECK