From: Kevin O'Connor Date: Tue, 17 May 2016 00:50:28 +0000 (-0400) Subject: usb-xhci: Remove unused const variables X-Git-Tag: rel-1.10.0~51 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0024cd77f88a38036a228fb885217ff06e97464c;p=seabios.git usb-xhci: Remove unused const variables Remove the unused arrays `eptype_to_xhci_in` and `eptype_to_xhci_out` to fix GCC 6 warnings. Signed-off-by: Paul Menzel Signed-off-by: Kevin O'Connor --- diff --git a/src/hw/usb-xhci.c b/src/hw/usb-xhci.c index 5e2f071..69954b9 100644 --- a/src/hw/usb-xhci.c +++ b/src/hw/usb-xhci.c @@ -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);