From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932334AbdJZMVE (ORCPT ); Thu, 26 Oct 2017 08:21:04 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:47442 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932185AbdJZMVA (ORCPT ); Thu, 26 Oct 2017 08:21:00 -0400 X-Google-Smtp-Source: ABhQp+St44yqJrOZirSuhYJw9IhBfZeIWon95E3zfKyYF8yWs9fZBGEpcttoLChnFTQqukhNVqxrUw== Date: Thu, 26 Oct 2017 14:20:55 +0200 From: LABBE Corentin To: mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] usb: xhci: remove unused variable last_freed_endpoint Message-ID: <20171026122055.GB26709@Red> References: <1509019317-40116-1-git-send-email-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1509019317-40116-1-git-send-email-clabbe@baylibre.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 26, 2017 at 12:01:54PM +0000, Corentin Labbe wrote: > This patch fix the following build warnings: > drivers/usb/host/xhci.c:3378:6: warning: variable 'last_freed_endpoint' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Corentin Labbe > --- > drivers/usb/host/xhci.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c > index ee077a2..b12b2bd 100644 > --- a/drivers/usb/host/xhci.c > +++ b/drivers/usb/host/xhci.c > @@ -3375,7 +3375,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, > unsigned int slot_id; > struct xhci_virt_device *virt_dev; > struct xhci_command *reset_device_cmd; > - int last_freed_endpoint; > struct xhci_slot_ctx *slot_ctx; > int old_active_eps = 0; > > @@ -3490,7 +3489,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, > } > > /* Everything but endpoint 0 is disabled, so free the rings. */ > - last_freed_endpoint = 1; > for (i = 1; i < 31; i++) { > struct xhci_virt_ep *ep = &virt_dev->eps[i]; > > @@ -3505,7 +3503,6 @@ static int xhci_discover_or_reset_device(struct usb_hcd *hcd, > if (ep->ring) { > xhci_debugfs_remove_endpoint(xhci, virt_dev, i); > xhci_free_endpoint_ring(xhci, virt_dev, i); > - last_freed_endpoint = i; > } > if (!list_empty(&virt_dev->eps[i].bw_endpoint_list)) > xhci_drop_ep_from_interval_table(xhci, > -- > 2.7.4 > I apologize, I have make some mistake in my send. Sorry Regards