Re: [PATCH] chipidea: ci_hdrc_imx: Remove unused variable 'res'

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

 



On Thu, Jul 25, 2013 at 12:55:28AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> 
> 'res' is not used anywhere, so let's get rid of it.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> ---
>  drivers/usb/chipidea/ci_hdrc_imx.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
> index 14362c0..06bc775 100644
> --- a/drivers/usb/chipidea/ci_hdrc_imx.c
> +++ b/drivers/usb/chipidea/ci_hdrc_imx.c
> @@ -96,7 +96,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
>  				  CI_HDRC_PULLUP_ON_VBUS |
>  				  CI_HDRC_DISABLE_STREAMING,
>  	};
> -	struct resource *res;
>  	int ret;
>  
>  	if (of_find_property(pdev->dev.of_node, "fsl,usbmisc", NULL)
> @@ -109,12 +108,6 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
>  		return -ENOMEM;
>  	}
>  
> -	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> -	if (!res) {
> -		dev_err(&pdev->dev, "Can't get device resources!\n");
> -		return -ENOENT;
> -	}
> -
>  	data->clk = devm_clk_get(&pdev->dev, NULL);
>  	if (IS_ERR(data->clk)) {
>  		dev_err(&pdev->dev,
> -- 
> 1.8.1.2
> 
> 

Acked-by: Peter Chen <peter.chen@xxxxxxxxxxxxx>

-- 

Best Regards,
Peter Chen

--
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