]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 12 Dec 2011 23:29:42 +0000 (00:29 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 12 Dec 2011 23:29:42 +0000 (00:29 +0100)
specification.

ChangeLog
grub-core/bus/usb/ohci.c

index ec65fb11ee62b2960f768f80ce85bd8f470411f9..43b5d59d3c206f823bf498f4a78bdf57eed2d327 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
+       specification.
+
 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * include/grub/loader.h (grub_loader_register_preboot_hook):
index 2291619cb3f6afb1b0f4b7516227ccb1d779d1d7..3f5ca7b031f57bdcc5cfeb103a3b89859bd76108 100644 (file)
@@ -1152,8 +1152,8 @@ grub_ohci_check_transfer (grub_usb_controller_t dev,
     return parse_halt (dev, transfer, actual);
 
   /* Finished ED detection */
-  if ( (grub_le_to_cpu32 (cdata->ed_virt->td_head) & ~0xf) ==
-       (grub_le_to_cpu32 (cdata->ed_virt->td_tail) & ~0xf) ) /* Empty ED */
+  if ( (grub_le_to_cpu32 (cdata->ed_virt->td_head) & ~0xfU) ==
+       (grub_le_to_cpu32 (cdata->ed_virt->td_tail) & ~0xfU) ) /* Empty ED */
     {
       /* Check the HALT bit */
       /* It looks like nonsense - it was tested previously...