From: Mike Frysinger Date: Tue, 16 Jun 2009 16:01:02 +0000 (+0100) Subject: tty: fix unused warning when TCGETX is not defined X-Git-Tag: v2.6.31-rc1~309^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dca607bcf10d3f08d07ffeac664c6769c336145;p=pandora-kernel.git 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 Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed