[kbd] [PATCH 2/2] [loadkeys branch] delete unused var

Mike Frysinger vapier at gentoo.org
Sun Jan 20 22:32:13 MSK 2013


Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 src/getkeycodes.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/getkeycodes.c b/src/getkeycodes.c
index 9bee144..9d6fad6 100644
--- a/src/getkeycodes.c
+++ b/src/getkeycodes.c
@@ -24,7 +24,6 @@ main(int argc, char **argv) {
 	int fd;
 	unsigned int sc, sc0;
 	struct kbkeycode a;
-	int old_kernel = 0;
 
 	set_progname(argv[0]);
 
@@ -43,7 +42,6 @@ main(int argc, char **argv) {
 	a.scancode = 0;
 	a.keycode = 0;
 	if (ioctl(fd, KDGETKEYCODE, &a)) {
-		old_kernel = 1;
 		sc0 = 89;
 	} else
 	for (sc0 = 1; sc0 <= 88; sc0++) {
-- 
1.8.0.2



More information about the kbd mailing list