Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

removed unused var real_tty on n_tty_ioctl()

I noted that the 'struct tty_struct *real_tty' is not used in this
function, so I removed the code about 'real_tty'.

Signed-off-by: Gustavo Fernando Padovan <gustavo@las.ic.unicamp.br>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Gustavo Fernando Padovan and committed by
Linus Torvalds
96a331b1 36c7343b

-7
-7
drivers/char/tty_ioctl.c
··· 981 981 int n_tty_ioctl(struct tty_struct *tty, struct file *file, 982 982 unsigned int cmd, unsigned long arg) 983 983 { 984 - struct tty_struct *real_tty; 985 984 unsigned long flags; 986 985 int retval; 987 - 988 - if (tty->driver->type == TTY_DRIVER_TYPE_PTY && 989 - tty->driver->subtype == PTY_TYPE_MASTER) 990 - real_tty = tty->link; 991 - else 992 - real_tty = tty; 993 986 994 987 switch (cmd) { 995 988 case TCXONC: