[2095] 2009-04-13 Pavel Roskin <[email protected]>

Pavel Roskin <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2095
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2095
Author:   proski
Date:     2009-04-13 13:00:59 +0000 (Mon, 13 Apr 2009)
Log Message:
-----------
2009-04-13  Pavel Roskin  <[email protected]>

	* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/term/usb_keyboard.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-04-13 11:45:20 UTC (rev 2094)
+++ trunk/grub2/ChangeLog	2009-04-13 13:00:59 UTC (rev 2095)
@@ -1,3 +1,7 @@
+2009-04-13  Pavel Roskin  <[email protected]>
+
+	* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
+
 2009-04-13  Felix Zielcke  <[email protected]>
 
 	* util/i386/pc/grub-install.in (install_drive): Remove the BSD

Modified: trunk/grub2/term/usb_keyboard.c
===================================================================
--- trunk/grub2/term/usb_keyboard.c	2009-04-13 11:45:20 UTC (rev 2094)
+++ trunk/grub2/term/usb_keyboard.c	2009-04-13 13:00:59 UTC (rev 2095)
@@ -173,7 +173,6 @@
 grub_usb_keyboard_getkey (void)
 {
   int key;
-  int key_release;
   grub_err_t err;
   unsigned char data[8];
   grub_uint64_t currtime;
@@ -192,15 +191,15 @@
 
   switch (repeat)
     {
-    case GRUB_HIDBOOT_REPEAT_NONE:
-      timeout = 100;
-      break;
     case GRUB_HIDBOOT_REPEAT_FIRST:
       timeout = 500;
       break;
     case GRUB_HIDBOOT_REPEAT:
       timeout = 50;
       break;
+    default:
+      timeout = 100;
+      break;
     }
 
   /* Wait until the key is released.  */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.