summaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
authorPaul Fulghum <paulkf@microgate.com>2006-04-11 07:54:19 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 15:18:43 +0200
commit14a6283eb5c1c70e6deee985c85dcce884150737 (patch)
treeb83f8170f3ee089959bb9d43d2abc963a6edd1aa /drivers/char/tty_io.c
parent[PATCH] ptmx: fix duplicate idr_remove (diff)
downloadlinux-14a6283eb5c1c70e6deee985c85dcce884150737.tar.xz
linux-14a6283eb5c1c70e6deee985c85dcce884150737.zip
[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/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c3
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)
{
struct tty_struct *tty, *o_tty;
int pty_master, tty_closing, o_tty_closing, do_sleep;
- int devpts_master, devpts;
+ int devpts;
int idx;
char buf[64];
unsigned long flags;
@@ -1757,7 +1757,6 @@ static void release_dev(struct file * filp)
pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
tty->driver->subtype == PTY_TYPE_MASTER);
devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0;
- devpts_master = pty_master && devpts;
o_tty = tty->link;
#ifdef TTY_PARANOIA_CHECK