mirror of https://github.com/ipxe/ipxe.git
[xhci] Fix comparison of signed and unsigned integers
gcc 4.8.2 fails to report this erroneous comparison unless assertions are enabled. Reported-by: Mary-Ann Johnson <MaryAnn.Johnson@displaylink.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/36/head
parent
25d6c80498
commit
6d195c5669
|
@ -2622,7 +2622,7 @@ static int xhci_device_open ( struct usb_device *usb ) {
|
|||
rc = id;
|
||||
goto err_enable_slot;
|
||||
}
|
||||
assert ( ( id > 0 ) && ( id <= xhci->slots ) );
|
||||
assert ( ( id > 0 ) && ( ( unsigned int ) id <= xhci->slots ) );
|
||||
assert ( xhci->slot[id] == NULL );
|
||||
|
||||
/* Allocate and initialise structure */
|
||||
|
|
Loading…
Reference in New Issue