diff mbox

[17/20] usb: host: xhci: reorder variable declaration

Message ID 20180416122930.15697-17-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
no functional changes. Cleanup only

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

Patch

diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 4c2bc9d1678e..cd5b6bf4c867 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -3692,13 +3692,15 @@  static int xhci_reserve_host_control_ep_resources(struct xhci_hcd *xhci)
  */
 int xhci_alloc_dev(struct usb_hcd *hcd, struct usb_device *udev)
 {
-	struct xhci_hcd *xhci = hcd_to_xhci(hcd);
-	struct xhci_virt_device *vdev;
 	struct xhci_slot_ctx *slot_ctx;
-	unsigned long flags;
-	int ret, slot_id;
+	struct xhci_virt_device *vdev;
 	struct xhci_command *command;
+	struct xhci_hcd *xhci;
+	unsigned long flags;
+	int slot_id;
+	int ret;
 
+	xhci = hcd_to_xhci(hcd);
 	command = xhci_alloc_command(xhci, true, GFP_KERNEL);
 	if (!command)
 		return 0;