From patchwork Fri Dec 8 15:59:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 121191 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp824947qgn; Fri, 8 Dec 2017 07:57:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMZpnnS31whasqyONybBZJp3Pon6Y+f4pu/qZMdRvRH4Xr05Xr9BYT3ss0m02jduMlf+RDaf X-Received: by 10.99.184.25 with SMTP id p25mr29803296pge.337.1512748637027; Fri, 08 Dec 2017 07:57:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512748637; cv=none; d=google.com; s=arc-20160816; b=RHJvMIZPQCZVLU0CX7L4W/xsYXR6ivZeGdrsrQDLQeZae26Qc5mmjo8MwcysQlkir2 zv1VsTnGjL2ow0q8xTCDrvIw+JkMPMrMwapsdwBDlRqMaaM1Yn8oNl5tQUuJoAFrOvBl v4n3I2dp2ksln851amwNJJdW7TbAr8HMDoYW9hnP8G8fQ+xHVq1QOK2l9N28z+aXeiCX 5T0aRivFemTV2g0BV2umJQ4nYi3nagn+MHaLqDJNNkjzwU0p7pPpAqPUrbRno/ykTd/9 zr7IwnvtUBK265te7DkzEQBP4q38HlOTeCiaMn/514NdwHAEZqC+7vhOPIXsMr++2ueP aIEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6SkCI7avsiEBPlVfCAwtYCOI9vZz1+ciuOWa9fpdFaI=; b=Y4WcJsoQnH2ew3jzPrkTPmZfKJbwId8Im9Blhuhhd2kCWBfZz9NG4Ai7z3AKB0kiI8 hwj1C66rfFHdGE1nKhkPl58nkxZeEmaiaAAuZki7UqD3tW4nL7YtrFe7uFiKyE5pxgs5 jsnfhxM3lEdi5JNU3iJWjRw7tzCrEw9rdzKNoNhPk5bfI4q0jC6PJ91kvbH9bv+Q+z8p jjGp1k8zSMxn0alJf4/3jeuGGKgPK0coN1G3cNezgg26Voarx7Faukw6BtlnT9phJXzK QPmeVDQ4ciSNF0DIBYaPF4NEBaoHz6YoNzhicvk3E9HAosuLnSKZM/kmkTLyUkeJxgtN ughA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si5692906ply.741.2017.12.08.07.57.16; Fri, 08 Dec 2017 07:57:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754481AbdLHP5O (ORCPT + 3 others); Fri, 8 Dec 2017 10:57:14 -0500 Received: from mga06.intel.com ([134.134.136.31]:3488 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754203AbdLHP5J (ORCPT ); Fri, 8 Dec 2017 10:57:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Dec 2017 07:57:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,378,1508828400"; d="scan'208";a="11726279" Received: from mattu-haswell.fi.intel.com ([10.237.72.164]) by fmsmga001.fm.intel.com with ESMTP; 08 Dec 2017 07:57:07 -0800 From: Mathias Nyman To: Cc: linux-usb@vger.kernel.org, Corentin Labbe , Mathias Nyman Subject: [PATCH 01/14] usb: xhci: remove unused variable last_freed_endpoint Date: Fri, 8 Dec 2017 17:59:02 +0200 Message-Id: <1512748755-3248-2-git-send-email-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512748755-3248-1-git-send-email-mathias.nyman@linux.intel.com> References: <1512748755-3248-1-git-send-email-mathias.nyman@linux.intel.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Corentin Labbe Fix the build warning about variable 'last_freed_endpoint' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 3 --- 1 file changed, 3 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 2424d30..31e3e46 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -3363,7 +3363,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, unsigned int slot_id; struct xhci_virt_device *virt_dev; struct xhci_command *reset_device_cmd; - int last_freed_endpoint; struct xhci_slot_ctx *slot_ctx; int old_active_eps = 0; @@ -3478,7 +3477,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, } /* Everything but endpoint 0 is disabled, so free the rings. */ - last_freed_endpoint = 1; for (i = 1; i < 31; i++) { struct xhci_virt_ep *ep = &virt_dev->eps[i]; @@ -3493,7 +3491,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, if (ep->ring) { xhci_debugfs_remove_endpoint(xhci, virt_dev, i); xhci_free_endpoint_ring(xhci, virt_dev, i); - last_freed_endpoint = i; } if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) xhci_drop_ep_from_interval_table(xhci,