From patchwork Mon Apr 16 12:29:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 10342899 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DA74A60542 for ; Mon, 16 Apr 2018 12:31:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA56D2870D for ; Mon, 16 Apr 2018 12:31:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8691286F5; Mon, 16 Apr 2018 12:31:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2501A286F5 for ; Mon, 16 Apr 2018 12:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753479AbeDPMbH (ORCPT ); Mon, 16 Apr 2018 08:31:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:41228 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754656AbeDPMbF (ORCPT ); Mon, 16 Apr 2018 08:31:05 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 05:31:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,459,1517904000"; d="scan'208";a="51140479" Received: from pipin.fi.intel.com (HELO localhost) ([10.237.68.37]) by orsmga002.jf.intel.com with ESMTP; 16 Apr 2018 05:31:03 -0700 From: Felipe Balbi To: Mathias Nyman Cc: Linux USB , Felipe Balbi Subject: [PATCH 17/20] usb: host: xhci: reorder variable declaration Date: Mon, 16 Apr 2018 15:29:27 +0300 Message-Id: <20180416122930.15697-17-felipe.balbi@linux.intel.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180416122930.15697-1-felipe.balbi@linux.intel.com> References: <20180416122930.15697-1-felipe.balbi@linux.intel.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP no functional changes. Cleanup only Signed-off-by: Felipe Balbi --- drivers/usb/host/xhci.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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;