Commit 14a6283e authored by Paul Fulghum's avatar Paul Fulghum Committed by Linus Torvalds

[PATCH] tty release_dev(): remove dead code

Remove dead code from tty_io.c release_dev()
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9453a5ad
...@@ -1740,7 +1740,7 @@ static void release_dev(struct file * filp) ...@@ -1740,7 +1740,7 @@ static void release_dev(struct file * filp)
{ {
struct tty_struct *tty, *o_tty; struct tty_struct *tty, *o_tty;
int pty_master, tty_closing, o_tty_closing, do_sleep; int pty_master, tty_closing, o_tty_closing, do_sleep;
int devpts_master, devpts; int devpts;
int idx; int idx;
char buf[64]; char buf[64];
unsigned long flags; unsigned long flags;
...@@ -1757,7 +1757,6 @@ static void release_dev(struct file * filp) ...@@ -1757,7 +1757,6 @@ static void release_dev(struct file * filp)
pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY && pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
tty->driver->subtype == PTY_TYPE_MASTER); tty->driver->subtype == PTY_TYPE_MASTER);
devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0; devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0;
devpts_master = pty_master && devpts;
o_tty = tty->link; o_tty = tty->link;
#ifdef TTY_PARANOIA_CHECK #ifdef TTY_PARANOIA_CHECK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment