tty: fix unused warning when TCGETX is not defined
authorMike Frysinger <vapier@gentoo.org>
Tue, 16 Jun 2009 16:01:02 +0000 (17:01 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 16 Jun 2009 19:01:16 +0000 (12:01 -0700)
commit5dca607bcf10d3f08d07ffeac664c6769c336145
tree73cb2d253b0ab4bd2501fb2bf1caf88f1d47f698
parent677ca3060c474d7d89941948e32493d9c18c52d2
tty: fix unused warning when TCGETX is not defined

If TCGETX is not defined, we end up with this warning:
drivers/char/tty_ioctl.c: In function ‘tty_mode_ioctl’:
drivers/char/tty_ioctl.c:950: warning: unused variable ‘ktermx’

Since the variable is only used in one case statement, push it down to
the local case scope.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_ioctl.c