On Thu, 8 Nov 2012, Fabio Estevam wrote:

> From: Fabio Estevam <[email protected]>
> 
> 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 <[email protected]>
> ---
>  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 <[email protected]>

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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to