diff options
author | Jiri Slaby <jslaby@suse.cz> | 2011-03-23 09:49:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-19 14:41:46 -0700 |
commit | 52ea383aba4d86d213622b2d4a94b01b4439fe11 (patch) | |
tree | 055b6db347691d2187892c2f28230b768494fa15 /drivers/tty/vt | |
parent | 6da9e95f7381fa27bc9c66c9840b11adde778618 (diff) | |
download | linux-stable-52ea383aba4d86d213622b2d4a94b01b4439fe11.tar.gz linux-stable-52ea383aba4d86d213622b2d4a94b01b4439fe11.tar.bz2 linux-stable-52ea383aba4d86d213622b2d4a94b01b4439fe11.zip |
tty: VT, remove unused variable
drivers/tty/vt/vt_ioctl.c:1525:2: warning: Value stored to 'kbd' is never read
kbd = kbd_table + console;
^ ~~~~~~~~~~~~~~~~~~~
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r-- | drivers/tty/vt/vt_ioctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c index 01ccd9e93b7f..54851544d7c0 100644 --- a/drivers/tty/vt/vt_ioctl.c +++ b/drivers/tty/vt/vt_ioctl.c @@ -1512,7 +1512,6 @@ long vt_compat_ioctl(struct tty_struct *tty, { struct vc_data *vc = tty->driver_data; struct console_font_op op; /* used in multiple places here */ - struct kbd_struct *kbd; unsigned int console; void __user *up = (void __user *)arg; int perm; @@ -1535,7 +1534,6 @@ long vt_compat_ioctl(struct tty_struct *tty, if (current->signal->tty == tty || capable(CAP_SYS_TTY_CONFIG)) perm = 1; - kbd = kbd_table + console; switch (cmd) { /* * these need special handlers for incompatible data structures |