Skip to contentSkip to conversation

tty release_dev remove dead code

PATCH New Paul Fulghum 1 participant 1 message Apr 4, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty release_dev remove dead code

Remove dead code from tty_io.c release_dev()

drivers/char/tty_io.c +1 -2
@@ -1733,7 +1733,7 @@ static void release_dev(struct file * fi
 {
 	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;
@@ -1750,7 +1750,6 @@ static void release_dev(struct file * fi
 	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