]> xenbits.xensource.com Git - seabios.git/commitdiff
usb-xhci: Remove unused const variables
authorKevin O'Connor <kevin@koconnor.net>
Tue, 17 May 2016 00:50:28 +0000 (20:50 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 17 May 2016 00:50:28 +0000 (20:50 -0400)
Remove the unused arrays `eptype_to_xhci_in` and `eptype_to_xhci_out` to
fix GCC 6 warnings.

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/usb-xhci.c

index 5e2f07188f35849a12d769674717f1da72c9e678..69954b9d8d7f7a7681c3b288c5ca937d960713d7 100644 (file)
@@ -286,20 +286,6 @@ static const int speed_to_xhci[] = {
     [ USB_SUPERSPEED ] = 4,
 };
 
-static const int eptype_to_xhci_in[] = {
-    [ USB_ENDPOINT_XFER_CONTROL] = 4,
-    [ USB_ENDPOINT_XFER_ISOC   ] = 5,
-    [ USB_ENDPOINT_XFER_BULK   ] = 6,
-    [ USB_ENDPOINT_XFER_INT    ] = 7,
-};
-
-static const int eptype_to_xhci_out[] = {
-    [ USB_ENDPOINT_XFER_CONTROL] = 4,
-    [ USB_ENDPOINT_XFER_ISOC   ] = 1,
-    [ USB_ENDPOINT_XFER_BULK   ] = 2,
-    [ USB_ENDPOINT_XFER_INT    ] = 3,
-};
-
 static int wait_bit(u32 *reg, u32 mask, int value, u32 timeout)
 {
     u32 end = timer_calc(timeout);