aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe.montjoie@gmail.com>2017-12-08 10:59:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-08 11:43:51 -0500
commit78a0db2a61b0f59a2faa090df75fe722f25d27f1 (patch)
tree9e9bfb0efee33f0222faa17d504937b1d0939273
parent57e6f0d7b8042cb0f2da61f280c56e5ac0db18e5 (diff)
usb: xhci: remove unused variable last_freed_endpoint
Fix the build warning about variable 'last_freed_endpoint' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/xhci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 2424d3020ca3..31e3e468f14e 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -3363,7 +3363,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd,
3363 unsigned int slot_id; 3363 unsigned int slot_id;
3364 struct xhci_virt_device *virt_dev; 3364 struct xhci_virt_device *virt_dev;
3365 struct xhci_command *reset_device_cmd; 3365 struct xhci_command *reset_device_cmd;
3366 int last_freed_endpoint;
3367 struct xhci_slot_ctx *slot_ctx; 3366 struct xhci_slot_ctx *slot_ctx;
3368 int old_active_eps = 0; 3367 int old_active_eps = 0;
3369 3368
@@ -3478,7 +3477,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd,
3478 } 3477 }
3479 3478
3480 /* Everything but endpoint 0 is disabled, so free the rings. */ 3479 /* Everything but endpoint 0 is disabled, so free the rings. */
3481 last_freed_endpoint = 1;
3482 for (i = 1; i < 31; i++) { 3480 for (i = 1; i < 31; i++) {
3483 struct xhci_virt_ep *ep = &virt_dev->eps[i]; 3481 struct xhci_virt_ep *ep = &virt_dev->eps[i];
3484 3482
@@ -3493,7 +3491,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd,
3493 if (ep->ring) { 3491 if (ep->ring) {
3494 xhci_debugfs_remove_endpoint(xhci, virt_dev, i); 3492 xhci_debugfs_remove_endpoint(xhci, virt_dev, i);
3495 xhci_free_endpoint_ring(xhci, virt_dev, i); 3493 xhci_free_endpoint_ring(xhci, virt_dev, i);
3496 last_freed_endpoint = i;
3497 } 3494 }
3498 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) 3495 if (!list_empty(&virt_dev->eps[i].bw_endpoint_list))
3499 xhci_drop_ep_from_interval_table(xhci, 3496 xhci_drop_ep_from_interval_table(xhci,