summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-ring.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-23 15:20:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-25 12:59:06 +0300
commitbe0f50c2e3c4bb9bd8fcb4b89879ae62308019bf (patch)
tree71e0dbb8ba5dff67023251758dc29b0d320b7e1a /drivers/usb/host/xhci-ring.c
parent04861f83367eaa3f32e3a1433afe8274e9a5f7f1 (diff)
downloadlinux-be0f50c2e3c4bb9bd8fcb4b89879ae62308019bf.tar.xz
usb: host: xhci: reorder variable definitions
no functional changes. Simple cleanup to make sure variables are ordered in a 'reverse christmas tree' fashion. While at that, also remove an obsolete comment which doesn't apply anymore. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> 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.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 4e7a6c217735..627518daf70e 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1822,22 +1822,18 @@ int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code)
return 0;
}
-/*
- * Finish the td processing, remove the td from td list;
- * Return 1 if the urb can be given back.
- */
static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td,
union xhci_trb *ep_trb, struct xhci_transfer_event *event,
struct xhci_virt_ep *ep, int *status, bool skip)
{
struct xhci_virt_device *xdev;
- struct xhci_ring *ep_ring;
- unsigned int slot_id;
- int ep_index;
- struct urb *urb = NULL;
struct xhci_ep_ctx *ep_ctx;
+ struct xhci_ring *ep_ring;
struct urb_priv *urb_priv;
+ struct urb *urb = NULL;
+ unsigned int slot_id;
u32 trb_comp_code;
+ int ep_index;
slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags));
xdev = xhci->devs[slot_id];