From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932291AbdJZMCT (ORCPT ); Thu, 26 Oct 2017 08:02:19 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:47386 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbdJZMCP (ORCPT ); Thu, 26 Oct 2017 08:02:15 -0400 X-Google-Smtp-Source: ABhQp+QVkKstncoV5QPiC4opKoorgRhNgPjQwPVJVrWaUFdP6Zg+Gest+OuTWcou3y0v8ZQvAbNSQw== 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 2/4] usb: xhci: remove unused variable ep Date: Thu, 26 Oct 2017 12:01:55 +0000 Message-Id: <1509019317-40116-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509019317-40116-1-git-send-email-clabbe@baylibre.com> References: <1509019317-40116-1-git-send-email-clabbe@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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. */ -- 2.7.4