[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
Michael Brown 2015-06-01 17:18:08 +01:00
parent 25d6c80498
commit 6d195c5669
1 changed files with 1 additions and 1 deletions

View File

@ -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 */