From patchwork Fri Dec 8 15:59:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 121190 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp824915qgn; Fri, 8 Dec 2017 07:57:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMaK2sJyGW6vn4g7y7C6Igs91DHT7q1bKn31kjHbobSxlSyb24Cqj5Z91zhualpxx4B27YAN X-Received: by 10.159.249.8 with SMTP id bf8mr23000997plb.165.1512748635585; Fri, 08 Dec 2017 07:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512748635; cv=none; d=google.com; s=arc-20160816; b=H72f9C4ORTgp6nRk7/sWpV/oLpo2IhVDN38VVLYoj0CBwmU8u9z3uOr3N1AUqcf/Qs AEc4rQer8V9E83vQwGkFCKTFlvxIMGFEfH9q8GWRmcUJbaBIB/LDcmAYgnqpzSZw/hE7 VpKiHljMKMf04fInTjXk8vdWAuWR9m+LOjIwPX5noq87Bb27ovnDz+ZHsDffj6u4VPzQ r6J7ArvNXLHxTFgQyX7Rz48jZk/1ForkgRqc7U/Nh2jydZCeH2cqTfNPj8PBizKt5XEm O7HOsyVAXAkCMEodyNBdLLVg6kNh8Dpa/zTQOu3Mngrp8ND9ikglEWlnAV3zyZbD3v+M qZCg== 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=BtaWpfko6ZZQThM4qmdROAdNed/4p4I3aWcm+o9zA3c=; b=HgS3gAUlwPlLy+d3QBBWB+ytfLNu2QeAHgn5r0txtzOiPeMmYiRwdlUYWrjzHf21yU MFwbrXa958XIqvpynn+NloUZSDldiNUQFaSThtH6ATUTrHwab8Q2eu/9crM5eJYaRxaJ U1QCDIoo4Hyo0kdYqVIRSYLWN4HWEXaO2b8ZPDX0PxgQtZ7NkLE2a9vMi5SW7+Wtk/TS gIja5Xqk7iFpaa7Id/z0OeXK8K8Csq3SjxRXkmkXK//rV1MvQ1mYzhUIkVKGgQzbPWrK ppG4o32rEA2cxjbFSZBCuGSV9IkakEhIlfBSfJzbxQC70J34CkygMOCddbyf6XnpPQEZ fnZg== 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.15; Fri, 08 Dec 2017 07:57:15 -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 S1754485AbdLHP5M (ORCPT + 3 others); Fri, 8 Dec 2017 10:57:12 -0500 Received: from mga06.intel.com ([134.134.136.31]:3490 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754480AbdLHP5K (ORCPT ); Fri, 8 Dec 2017 10:57:10 -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:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,378,1508828400"; d="scan'208";a="11726289" Received: from mattu-haswell.fi.intel.com ([10.237.72.164]) by fmsmga001.fm.intel.com with ESMTP; 08 Dec 2017 07:57:08 -0800 From: Mathias Nyman To: Cc: linux-usb@vger.kernel.org, Corentin Labbe , Mathias Nyman Subject: [PATCH 02/14] usb: xhci: remove unused variable ep Date: Fri, 8 Dec 2017 17:59:03 +0200 Message-Id: <1512748755-3248-3-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: variable 'ep' set but not used Signed-off-by: Corentin Labbe Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci.c | 2 -- 1 file changed, 2 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 31e3e46..89ad7c0 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -2838,12 +2838,10 @@ void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) { struct xhci_dequeue_state deq_state; - struct xhci_virt_ep *ep; struct usb_device *udev = td->urb->dev; xhci_dbg_trace(xhci, trace_xhci_dbg_reset_ep, "Cleaning up stalled endpoint ring"); - ep = &xhci->devs[udev->slot_id]->eps[ep_index]; /* We need to move the HW's dequeue pointer past this TD, * or it will attempt to resend it on the next doorbell ring. */