mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tty release_dev remove dead code
@ 2006-04-04 19:10 Paul Fulghum
  0 siblings, 0 replies; only message in thread
From: Paul Fulghum @ 2006-04-04 19:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List

Remove dead code from tty_io.c release_dev()

--- linux-2.6.16/drivers/char/tty_io.c	2006-04-04 13:58:57.000000000 -0500
+++ b/drivers/char/tty_io.c	2006-04-04 13:59:51.000000000 -0500
@@ -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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-04 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04 19:10 [PATCH] tty release_dev remove dead code Paul Fulghum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome