From 6d195c5669b3d4c728074a78f0dab9085a012734 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 1 Jun 2015 17:18:08 +0100 Subject: [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 Signed-off-by: Michael Brown --- src/drivers/usb/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c index 4b143369..fa496698 100644 --- a/src/drivers/usb/xhci.c +++ b/src/drivers/usb/xhci.c @@ -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 */ -- cgit