summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2017-06-15 11:55:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-15 23:17:46 +0300
commitd36374fdfb259bac4511762bb349e69c6d093d37 (patch)
tree337ed3f5748b829df6e27f0c67f1512f1bbbfaca /drivers/usb/host/xhci-ring.c
parentade2e3a148a1740a6f3abea9c54f11630b9d7d1e (diff)
downloadlinux-d36374fdfb259bac4511762bb349e69c6d093d37.tar.xz
xhci: cleanup virtual endoint structure, remove stopped_stream
Get rid of stopped_stream member in virtual endpoint structure as it is only used in one case when cleaning a halted endpoint. Pass it as function parameter instead. No functional changes Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-ring.c')
-rw-r--r--drivers/usb/host/xhci-ring.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 43ec7005701b..7f1139b49b3a 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1832,11 +1832,8 @@ static void xhci_cleanup_halted_endpoint(struct xhci_hcd *xhci,
xhci_queue_reset_ep(xhci, command, slot_id, ep_index, reset_type);
- if (reset_type == EP_HARD_RESET) {
- ep->stopped_stream = stream_id;
- xhci_cleanup_stalled_ring(xhci, ep_index, td);
- ep->stopped_stream = 0;
- }
+ if (reset_type == EP_HARD_RESET)
+ xhci_cleanup_stalled_ring(xhci, ep_index, stream_id, td);
xhci_ring_cmd_db(xhci);
}