* [PATCH] [PATCH] removed unused var real_tty on n_tty_ioctl()
@ 2008-05-29 15:26 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2008-05-29 15:26 UTC (permalink / raw)
To: akpm, linux-kernel
From: Alan Cox <alan@redhat.com>
From: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Hello,
I noted that the 'struct tty_struct *real_tty' is not used in this
function, so I removed the code about 'real_tty'. This little change
is on kernel 2.6.25.4, but aplies on 2.6.24 or greater.
Signed-off-by: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Alan Cox <alan@redhat.com>
---
drivers/char/tty_ioctl.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/drivers/char/tty_ioctl.c b/drivers/char/tty_ioctl.c
index b1a757a..8f81139 100644
--- a/drivers/char/tty_ioctl.c
+++ b/drivers/char/tty_ioctl.c
@@ -981,16 +981,9 @@ EXPORT_SYMBOL_GPL(tty_perform_flush);
int n_tty_ioctl(struct tty_struct *tty, struct file *file,
unsigned int cmd, unsigned long arg)
{
- struct tty_struct *real_tty;
unsigned long flags;
int retval;
- if (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
- tty->driver->subtype == PTY_TYPE_MASTER)
- real_tty = tty->link;
- else
- real_tty = tty;
-
switch (cmd) {
case TCXONC:
retval = tty_check_change(tty);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-29 15:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 15:26 [PATCH] [PATCH] removed unused var real_tty on n_tty_ioctl() Alan Cox
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.