Re: [PATCH] usb: ehci-mxc: Remove unused 'echi' variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 8 Nov 2012, Fabio Estevam wrote:

> From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> 
> Since commit c73cee7 (USB: EHCI: remove ehci_port_power() routine), the 'ehci'
> variable is no longer used, so remove it and fix the following build warning:
> 
> drivers/usb/host/ehci-mxc.c:41:19: warning: unused variable 'ehci' [-Wunused-variable]
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> ---
>  drivers/usb/host/ehci-mxc.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c
> index c34b1de..ec7f5d2 100644
> --- a/drivers/usb/host/ehci-mxc.c
> +++ b/drivers/usb/host/ehci-mxc.c
> @@ -38,8 +38,6 @@ struct ehci_mxc_priv {
>  /* called during probe() after chip reset completes */
>  static int ehci_mxc_setup(struct usb_hcd *hcd)
>  {
> -	struct ehci_hcd *ehci = hcd_to_ehci(hcd);
> -
>  	hcd->has_tt = 1;
>  
>  	return ehci_setup(hcd);

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

Thanks for spotting this.  I tried to get rid of all those unneeded 
variables when writing the big patch, but it's easy to miss some.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux