From patchwork Fri Dec 8 15:59:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 121192 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp824973qgn; Fri, 8 Dec 2017 07:57:18 -0800 (PST) X-Google-Smtp-Source: AGs4zMYw8m/zTKdB3o74xMW6l2Z2eGxpeIodC/HapuzZ2eqKwSGHm04UafOh0nAtLsCkH6ejYX4+ X-Received: by 10.101.97.129 with SMTP id c1mr31043506pgv.223.1512748638371; Fri, 08 Dec 2017 07:57:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512748638; cv=none; d=google.com; s=arc-20160816; b=up2aJ2Qk28g9qPScd6ZKovN/7Ac1tHhag8PtN50MM7uw0owhhKrYoyNr3VsbDKY/rE 2Okp9xb/+VoUGSbkWxMMPCR5Ilo73jq1gVwQ9tHsbV03hTzAC6WYFTsbbIAlIHa8hyKd ZBvFbulffzJ5OKE72Xv0gRC4VQ6GGiEJCLetHkvmQgPxnLXiOVjVugXD8r5G7m2acurV ffIwRh9Qbmdg67CRKzW1EvJfXV5a6+cFqyShGO3Nadtv22z7uIZ8vv7GOtIJuOFmEmcK /342u/aqETfNC5zVygFATahdsvC29ag8L9bnbEJhhi4EgD/MftJFdJeOpyqpYQR140R2 KF7w== 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=Ko9B5xjbhLaInaD6/I51poIaTCF3UqhRLN1WIcoa4IM=; b=SbZ1di1IwiAk92yxj0nvOQR0s5UMgCq6H2uXV34ZVVbWQfvP6XUBKk1+ywOsxYeo8q JbsvzZlJ7+EcS075r8OPmFTMBcHhkbJ0mv9TjVC97l1NSo96a7BJR28Rp94L1kgBJ9RB wfwdI+L71CbKUYAG7AZ7kVkvRHdIKB8ZC4th1C6zHE8ySQMBhU6IDcjPVBricZkOg4y9 lmCuJXy6Po+WM9YwwKt/4NHs8gXVy/IMLJqejqxx9Ul9C35OhXe/HDTlu4EA4yhD0g0i epLgMN8Cl/VuPXiFqydfNla4SliKcTyFj8XEh5JTtEMXEnHmGJXnzkci03UrEPu4ErMq I0DQ== 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.18; Fri, 08 Dec 2017 07:57:18 -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 S1754277AbdLHP5Q (ORCPT + 3 others); Fri, 8 Dec 2017 10:57:16 -0500 Received: from mga06.intel.com ([134.134.136.31]:3492 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754486AbdLHP5N (ORCPT ); Fri, 8 Dec 2017 10:57:13 -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:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,378,1508828400"; d="scan'208";a="11726315" Received: from mattu-haswell.fi.intel.com ([10.237.72.164]) by fmsmga001.fm.intel.com with ESMTP; 08 Dec 2017 07:57:11 -0800 From: Mathias Nyman To: Cc: linux-usb@vger.kernel.org, Corentin Labbe , Mathias Nyman Subject: [PATCH 04/14] usb: xhci: remove unused variable ep_ring Date: Fri, 8 Dec 2017 17:59:05 +0200 Message-Id: <1512748755-3248-5-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 'ep_ring' set but not used [Minor commit message change -Mathias] Signed-off-by: Corentin Labbe Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.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-ring.c b/drivers/usb/host/xhci-ring.c index 9a914b6..6e55520 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1992,7 +1992,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; @@ -2004,7 +2003,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;