diff options
author | Paul Fulghum <paulkf@microgate.com> | 2006-04-11 01:54:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-11 09:18:43 -0400 |
commit | 14a6283eb5c1c70e6deee985c85dcce884150737 (patch) | |
tree | b83f8170f3ee089959bb9d43d2abc963a6edd1aa /drivers | |
parent | 9453a5adaf32aa0b31d1491819a083d403f645c1 (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/tty_io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index b1f9a1582dd7..f70a47eadb52 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -1740,7 +1740,7 @@ static void release_dev(struct file * filp) | |||
1740 | { | 1740 | { |
1741 | struct tty_struct *tty, *o_tty; | 1741 | struct tty_struct *tty, *o_tty; |
1742 | int pty_master, tty_closing, o_tty_closing, do_sleep; | 1742 | int pty_master, tty_closing, o_tty_closing, do_sleep; |
1743 | int devpts_master, devpts; | 1743 | int devpts; |
1744 | int idx; | 1744 | int idx; |
1745 | char buf[64]; | 1745 | char buf[64]; |
1746 | unsigned long flags; | 1746 | unsigned long flags; |
@@ -1757,7 +1757,6 @@ static void release_dev(struct file * filp) | |||
1757 | pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY && | 1757 | pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY && |
1758 | tty->driver->subtype == PTY_TYPE_MASTER); | 1758 | tty->driver->subtype == PTY_TYPE_MASTER); |
1759 | devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0; | 1759 | devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0; |
1760 | devpts_master = pty_master && devpts; | ||
1761 | o_tty = tty->link; | 1760 | o_tty = tty->link; |
1762 | 1761 | ||
1763 | #ifdef TTY_PARANOIA_CHECK | 1762 | #ifdef TTY_PARANOIA_CHECK |