From patchwork Thu Oct 26 10:46:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117191 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp605458qgn; Thu, 26 Oct 2017 03:47:39 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TWbF5D45WHxJW7DkOiExtSWMFfyNvDHO2O7yP8N0ClPkvASen78am5saNJEU+SCwPteZnQ X-Received: by 10.99.160.25 with SMTP id r25mr4508930pge.67.1509014859119; Thu, 26 Oct 2017 03:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014859; cv=none; d=google.com; s=arc-20160816; b=dEpCQsdvolWQlGlABG2VQczX/y+Q4ozu0jyBdFqUrtrkGnMsNmOJq9RvJ0jxoXhN50 3zCeZFxH19c0bBLB0z6/3NZCj8XgRumtXY3u80NJRPaPKROv2CBmqW5HDlCj59YPSrVK bQ9E/ZZzoLXTX6id3pCfOxMIVPXZYu9R6RmP+13pU8MFtXRN/Izwj1PlcLwnN9ZdJVB3 VfUC/rd0Qe5gFYNkqWz+x4FYajPtqzyvzLZHHBK+H4O1erHbqHNRXYbR/Qj4xBqTexWh PT8CqUlrihseOuksaPTIb/e/W18VUMdOEBYE53mTlBSt0DxuNFTnickXOHv7c0+cImAV oeuw== 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:dkim-signature:arc-authentication-results; bh=mgvHK1seGs9Zj3nNiqFVVJLEHKM+cF56Aj5qTsfroC0=; b=la0aPjap0kdxfsjxlyuMnVip//1cyASf8SaeEdzVMNKJLcR+8L3BWrZGsRExNgN/Yx Mv6VT5x4ZZVzrNJZ3MDxNAHtil9fMiPmClYYJx2vh5MoZjOQH8wJn5SO3rnS0k4zY2Ku A2ygdTGnTdc+7b9WkSMFdRoc6nTy9JOfIofYYTbohHKvu0vvh+LYeX20Gki481+8hJwk Yo1W30TohkvcGJjsdVgGovJwwC91FkA/4E/G0ulz0sqWqdOY58x+Zh8QEl6ovQLp7lYH zHO+lXzfEVtfVi+BBonFsy1D4uozcGW60ZLgPzWm9o9SOV0muG8pl0vfmgoCxXzHbr91 1z6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=w7g2+jcD; 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 j9si3144268pgp.547.2017.10.26.03.47.38; Thu, 26 Oct 2017 03:47:39 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=w7g2+jcD; 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 S1752035AbdJZKrh (ORCPT + 4 others); Thu, 26 Oct 2017 06:47:37 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:49015 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523AbdJZKqk (ORCPT ); Thu, 26 Oct 2017 06:46:40 -0400 Received: by mail-wm0-f65.google.com with SMTP id p75so7079635wmg.3 for ; Thu, 26 Oct 2017 03:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GB5QSD4baVqW6HaB4SO1LTRDuPQbSzwRcTmQfr8BRic=; b=w7g2+jcDbT+KyBtHkLcboDKVGNgRAuv9IXwDEdg/++F9RGAPVLN4z3ZIeytnheDQ9g I/sCoMGanK/PBXrTdpfhhaNzLvYQiw4Ki7pXcX9l/lOE+1M0Q0gaxIAOZPrkC0uEJzoH UPDJBafOfWMHdHIcE3512na1K9dl0OKgeMbQ7ByQVX9aWk4MV0XFf6KYMS+8HJdFsp7C La/Rbz3Pa9pdE4pgCITZ5T81ZMPYXBTOi+QGGbST1vCdxshTcATSaYfK706ivH88HgpN YKWfRsdkFSyFVy+2xQKc58J5WROivSnXSEGbFnRy+d5t0WrIMSHBrvvGSHA3Rs6dOm9Y +M5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GB5QSD4baVqW6HaB4SO1LTRDuPQbSzwRcTmQfr8BRic=; b=iMi93g/VDzht85NlpWW2kmMDXZmD4xt7Yqu9oEyYSjoWCGzstR+4Zc69ly9MwFmuUV 6d5hZGH9h/dnKmWwm19HKoiqIdmA97iUIfgyzCic7INFeVeznWQdVR94s7VwRZ8CC7P7 BrTGeNf8abRebNey7tr+fZmRE4btqbJKkxCNMEWOisit+hh+ArkRO8eUqBf7hvUebKjX zM6UIA4plTGgeUYrY4XKPQCJqWKYjNWSfYn+NUu2Qmi6Gs/VO0UpCgmC9yQ02x0uhONn NSHez2ZxyFXbAjnutnAI8NXuWt0unMYfXstfYjmQjt022ESMKKkJ5Wxa0VrB7RcIG0Se /oyw== X-Gm-Message-State: AMCzsaWO2l6EFloXiG+cTh8KGzearL9a9N6KEoGnBJg57LZeLZnmzBJ6 YXs5xe2L6OZuMgoYl++cwGgLUQ== X-Received: by 10.28.59.134 with SMTP id i128mr1331125wma.114.1509014799241; Thu, 26 Oct 2017 03:46:39 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id o7sm6102295wrf.31.2017.10.26.03.46.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:46:38 -0700 (PDT) From: Corentin Labbe To: mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v2 1/4] usb: xhci: remove unused variable last_freed_endpoint Date: Thu, 26 Oct 2017 10:46:22 +0000 Message-Id: <1509014785-39823-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509014785-39823-1-git-send-email-clabbe@baylibre.com> References: <1509014785-39823-1-git-send-email-clabbe@baylibre.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Corentin Labbe This patch fix the following build warnings: drivers/usb/host/xhci.c:3378:6: warning: variable 'last_freed_endpoint' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- 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 ee077a2..b12b2bd 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -3375,7 +3375,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; @@ -3490,7 +3489,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]; @@ -3505,7 +3503,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,