From patchwork Thu Oct 26 10:46:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117190 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp605186qgn; Thu, 26 Oct 2017 03:47:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TMOABW+Znor5UN74xOW6qEs1Zr2+mx87IQVorBcrglA/vGXiSKRR4hNQj5f74u3mTfTrSV X-Received: by 10.84.174.1 with SMTP id q1mr4176151plb.220.1509014840123; Thu, 26 Oct 2017 03:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014840; cv=none; d=google.com; s=arc-20160816; b=C4IFmzoW7M4A11g2iTGPHKk5ZfDWazr+o9SXR5hKRnq9cfLExKvdfcaQOPpAd8ih9y d6T7rsYJavoSyRQUgvjDXN+tMQfQh119QEtNL5EF2ZL2nfb/6DrG7ZiXLO5pI860qntD iigbszvwRrL6WdW+ExMbkUuy9yhyXBwgMvvfG4chToKcN9l4fj9OjJKJbTIoh7Vyrr93 O5RXgNbut3s21mqhGdSFJfHr4qIGeBgjSRdqAwuNehbylJR6HViLgVRO7vq+EQXvqC9h aybzoAKvvbbU1+HE4TwYmivTHkOr7cqBf125JY16RrEo1gmNmSuCONvi+FS79KTHuZCM amAA== 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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=ny5UqLmxXasnC3+PataR5qgqt6VZxbm85cD2ZgqJ1nC2FHXL7PUnzbr8vKaTRv4T85 eXaPqdqCaZxpqxQfk75PwBasv7NLJAMUThpSTD20Qv2rMbePZUhQ6rnulLmHRCL6rDJM EignKFU1+06UoeRsm3qZHf071id/8nKjdFnUXNRv8Lz+Qtkiy8rVydZ+ZrF7kvQa6s3n XwUxGEfHhG7r8h3YZFU1sDxxSS4GR+Buk9xEzQP0LgqFkz5p40eIIwCMywcrtTvoG84P ZT1apHtWI0OhkheB21gCaiif5sDrwPmZ4AdkR4CrPOz6Ar2h/b7j1l8KmAKH+QW4KFFG WHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XLmBLruf; 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 89si3463095pfj.174.2017.10.26.03.47.19; Thu, 26 Oct 2017 03:47:20 -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=XLmBLruf; 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 S1751771AbdJZKrS (ORCPT + 27 others); Thu, 26 Oct 2017 06:47:18 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:45778 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdJZKql (ORCPT ); Thu, 26 Oct 2017 06:46:41 -0400 Received: by mail-wm0-f67.google.com with SMTP id q124so7099877wmb.0 for ; Thu, 26 Oct 2017 03:46:40 -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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=XLmBLruf6Baels6t/EvD3dCtVpmeb9TNYTJzQVQk4tLavabLOhsQY679w3wXspVQD/ lg/OdpQhPpO3JxRmvrQ2Ng6Gxzg5w9Kx3E7mK3WGwiJ3vXNfTx7Tu84hJdNoOFK7Kr7M q7mbxKES7/AmBSaV09YXKPMqkIBPnxFxQx9oV3i6QTmoPQAa3ubRN6k1ZGhULDzaWz3K 2PgivEU46QbcHwAcMcjfHLPDz/qOhv7VbN/vjuWzD7T8cutSnA0qZEbiwMM9punw/jzl 28hoeNtY2uLZaxHY/ajvkwPXT0ukw3tOqGr+gHMxOso7hDVXS9OndbpTAeG3300/Ofhc IN9w== 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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=b8DW6UbfSHRTThovN3aCv37S3BckaB0ulXa+TkBl0CESHOpvW4l3fah4KBG+Xgem8K vtS8AMgIK/8DrTEnIWeYdy270NM33pngUOLfA7fSQTcllyO3duCf0v7uojgXXryBOgRd e3KopwzgEqqhnQZdmTkYVM2Vk0dT7WUFFW1gMvWYQnSFtU9BPWFIW8hhyCGO59Qt5Vx6 TKywzuZfPRS+XECDmwrjPKD66OpRzm+5G39GJm1ad1rW0LXXwfcUMR3oxOmfGW0ngYHx OIZNFsQd5JZ409rvdAiaP/bpi/bQfCmFsvsNOpwFPMh4yW8TIPl7FQFGQI2ODLxy8zmM AJjQ== X-Gm-Message-State: AMCzsaVEeQqw+7YR2ZzSm5daWE5ZW2lLlwVcLdPar7rXZyFhDPRuA0Gq l2NfHTR20YQ/ir/MsrXsU+LUaw== X-Received: by 10.28.94.3 with SMTP id s3mr1289524wmb.78.1509014799985; 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.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:46:39 -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 2/4] usb: xhci: remove unused variable ep Date: Thu, 26 Oct 2017 10:46:23 +0000 Message-Id: <1509014785-39823-3-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 warning: drivers/usb/host/xhci.c:2853:23: warning: variable 'ep' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index b12b2bd..eae86bd 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -2850,12 +2850,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. */