diff mbox

[06/20] usb: host: xhci: reorder variable declarations

Message ID 20180416122930.15697-6-felipe.balbi@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Felipe Balbi April 16, 2018, 12:29 p.m. UTC
Cleanup only, no functional changes. While at that, remove the
initialization of ret which is now unnecessary.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
---
 drivers/usb/host/xhci.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index f2733f717568..eec9e0c0b7c9 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -1303,12 +1303,13 @@  static int xhci_num_tds_for_urb(struct urb *urb)
 static int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags)
 {
 	struct xhci_hcd *xhci = hcd_to_xhci(hcd);
+	struct urb_priv	*urb_priv;
 	unsigned long flags;
-	int ret = 0;
-	unsigned int slot_id, ep_index;
 	unsigned int *ep_state;
-	struct urb_priv	*urb_priv;
+	unsigned int ep_index;
+	unsigned int slot_id;
 	int num_tds;
+	int ret;
 
 	if (!urb || xhci_check_args(hcd, urb->dev, urb->ep,
 					true, true, __func__) <= 0)