@@ -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;
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(-)