From patchwork Thu Oct 26 10:46:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117188 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp604852qgn; Thu, 26 Oct 2017 03:46:53 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Spe/C8MYbW0Lg4Rb0+M1po7kTOi2tv7iFg0x+acSRox1vSS8d0CvgVrD4zS3MBNe7nn4TG X-Received: by 10.98.17.156 with SMTP id 28mr4947191pfr.80.1509014812904; Thu, 26 Oct 2017 03:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014812; cv=none; d=google.com; s=arc-20160816; b=HQ+z+AmzD0xDaEHHnqiKESTjDbt69r5Fb2PWC9vgcOGic2YxaPhnSw5EKllOhorzbt W2cUUAb/twS98MESypL6vZXqa9QzYqW1TF1aNOnPyFvuXc57TxGQdT6UtMydPgmd8fbQ 1D4bQBVsZsuU5QogrVJVmyMYblHaUZnLrWPtrs5dcadpKiUgOuWo4uBGFGHaYyP0K61l rxOHKbhaU69qVMUtXCP5Yx7TINMNm1+PrU+zpuMe+jtMwqcV34FdRtrD4/9LCLFhbvKZ oDaKCEr/fv1T1hxuuo2n7hj21OFJJUhVag/RdoCucGvrZ+ikoVl3gQbn8UV+4lYS7sz8 zXxw== 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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=ODxOqsyugsbKPxhYeEfQ7fomTdtzuPh8tqb5/wiTT4w+M4UGFdTkX3/UfqeKnNDLnT 6JCE6/OmubU35Q4CmKlZIDg0oV67uH8tceLc6VddVX8D6qBAQhyCCmfxNy8cNAl/8eM6 xVxuCFTqBiyOVAtMgqp8z1gkdB0Oe/alXJ7aeiNqfJ6HeKIjB4Gfqa1jNdqxxs9otfRq vyMK0Zpd2aiZq3GpiUnTch1J+QqGcHc8bwPua0qyGUvVZxhGZjQj9a1otZ5EQPnOruE+ TL6do2poTs0fS+84WXe2rmzMQY1mBO7yBh0Sf5OGsOJFReEP5NoPj/BPUX8qLAJhiCpq IZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lVBG/7SV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 m13si3220850pgs.20.2017.10.26.03.46.52; Thu, 26 Oct 2017 03:46:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lVBG/7SV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbdJZKqu (ORCPT + 27 others); Thu, 26 Oct 2017 06:46:50 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52250 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbdJZKqm (ORCPT ); Thu, 26 Oct 2017 06:46:42 -0400 Received: by mail-wm0-f65.google.com with SMTP id t139so7377123wmt.1 for ; Thu, 26 Oct 2017 03:46:42 -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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=lVBG/7SV8/DeWpJueetv9pkaSZKKkEtPb1LN3ZES29pCIoeAwtxR8i89Mj0+F98dzd qBQ+ZYhpeiK3YOpy/Yfs+mWg3V+be7L0Yn8DEwmXRxiAJakmnLKrclBEJJdjdpTgVT3U Q0vitB7MnRiZVuKkRika3J328tnXPDZV1Y4VsIqH99bBLtdoLd4OZh4vmCtPbILv/AJW srniT06UG5ec5U9SnUl+YzrORkFtzO5pU2IQqnHBGixSTwmAAoztA6aejsb15IYO3e2O sfrr1+22vBI1gONqv8P7/GJHAHfLSlILPxM98Hd/dfBMY3Mf4y7Uyc/dav2960T4C87b AZdg== 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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=pu74JH6ApkDZuIDXMNmDJXn+WfysHmaGlnj3OKipd66L0NDQtTMzGLZHAoGFQa0AYj f12VUbFfs2wlgxzIepywVKdO1SMMQFzNeqDZYkJNlv/x29phvZb2tu7OICoqt50zNeVe F2PVdZQGd0qSmW31IrAefIP8nQfGiztD6u/KzIde/j+MBtYpbD9dq/B9ei1E0D9GJaou +AoxXp1h+2SlZPRnORiHAScbqEe+UIG28VoX/KV+0CqXbiql41s84LHcP5c2xx3Jl1Xm haQCEA4yNYiiNsjH30S1Ggm03w9NxneucBpqmHprwGuwdxgfc+Lf6Lsb8HS5F1/csbeq 21zg== X-Gm-Message-State: AMCzsaVp/xhpBPVcHCpzAQjjiFQ41VkP5atxuxU0y3H58OjI8y1B4zGQ xkAhV3ZhdazR/1XyZzlGpnIGfQ== X-Received: by 10.28.98.212 with SMTP id w203mr1360695wmb.88.1509014801577; Thu, 26 Oct 2017 03:46:41 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id o7sm6102295wrf.31.2017.10.26.03.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:46:40 -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 4/4] usb: xhci: remove unused variable ep_ring Date: Thu, 26 Oct 2017 10:46:25 +0000 Message-Id: <1509014785-39823-5-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe This patch fix the following build warnings: drivers/usb/host/xhci-ring.c:2011:20: warning: variable 'ep_ring' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 942eeb3..27d657e 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2004,7 +2004,6 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep, int *status) { struct xhci_virt_device *xdev; - struct xhci_ring *ep_ring; unsigned int slot_id; int ep_index; struct xhci_ep_ctx *ep_ctx; @@ -2016,7 +2015,6 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td, slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); xdev = xhci->devs[slot_id]; ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; - ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); requested = td->urb->transfer_buffer_length;