All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] tty: VT, remove unused variable
@ 2011-03-23  8:49 Jiri Slaby
  2011-03-23  8:49 ` [PATCH 2/7] TTY: serial_core, " Jiri Slaby
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Jiri Slaby @ 2011-03-23  8:49 UTC (permalink / raw)
  To: jirislaby; +Cc: linux-kernel, Jiri Slaby, Greg Kroah-Hartman

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>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
---
 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 937d172..8c7208a 100644
--- a/drivers/tty/vt/vt_ioctl.c
+++ b/drivers/tty/vt/vt_ioctl.c
@@ -1499,7 +1499,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;
@@ -1522,7 +1521,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
-- 
1.7.4.1



^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2011-04-20  0:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-23  8:49 [PATCH 1/7] tty: VT, remove unused variable Jiri Slaby
2011-03-23  8:49 ` [PATCH 2/7] TTY: serial_core, " Jiri Slaby
2011-03-23  9:15   ` Govindraj
2011-03-23  9:15     ` Govindraj
2011-03-23  8:49 ` [PATCH 3/7] Char: cyclades, fix " Jiri Slaby
2011-03-23  8:49 ` [PATCH 4/7] TTY: VT, remove unused variables Jiri Slaby
     [not found] ` <1300870200-24405-1-git-send-email-jslaby-AlSwsSmVLrQ@public.gmane.org>
2011-03-23  8:49   ` [PATCH 5/7] I2C: eg20t, remove unused variable Jiri Slaby
2011-03-23  8:49     ` Jiri Slaby
2011-03-23 10:09     ` Jean Delvare
     [not found]     ` <1300870200-24405-5-git-send-email-jslaby-AlSwsSmVLrQ@public.gmane.org>
2011-03-23 10:50       ` Tomoya MORINAGA
2011-03-23 10:50         ` Tomoya MORINAGA
     [not found]         ` <3DCFFD98C696488F94CB1A74F2998DF9-c0cKtqp5df7I9507bXv2FdBPR1lH4CV8@public.gmane.org>
2011-04-19 15:06           ` Jiri Slaby
2011-04-19 15:06             ` Jiri Slaby
     [not found]             ` <4DADA4D8.4080602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-04-20  0:04               ` Tomoya MORINAGA
2011-04-20  0:04                 ` Tomoya MORINAGA
2011-03-23  8:49 ` [PATCH 6/7] Char: moxa, remove unused variables Jiri Slaby
2011-03-23  8:50 ` [PATCH 7/7] TTY: rocket, " Jiri Slaby

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.