Skip to content

Commit

Permalink
[PATCH] tty release_dev(): remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Fulghum authored and Linus Torvalds committed Apr 11, 2006
1 parent 9453a5a commit 14a6283
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 14a6283

Please sign in to comment.