Skip to content

Commit 14a6283

Browse files
Paul FulghumLinus Torvalds
authored andcommitted
[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>
1 parent 9453a5a commit 14a6283

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/char/tty_io.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ static void release_dev(struct file * filp)
17401740
{
17411741
struct tty_struct *tty, *o_tty;
17421742
int pty_master, tty_closing, o_tty_closing, do_sleep;
1743-
int devpts_master, devpts;
1743+
int devpts;
17441744
int idx;
17451745
char buf[64];
17461746
unsigned long flags;
@@ -1757,7 +1757,6 @@ static void release_dev(struct file * filp)
17571757
pty_master = (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
17581758
tty->driver->subtype == PTY_TYPE_MASTER);
17591759
devpts = (tty->driver->flags & TTY_DRIVER_DEVPTS_MEM) != 0;
1760-
devpts_master = pty_master && devpts;
17611760
o_tty = tty->link;
17621761

17631762
#ifdef TTY_PARANOIA_CHECK

0 commit comments

Comments
 (0)