On Mon, Feb 17, 2014 at 07:12:53PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <[email protected]>
> 
> No need to return a 'fake' return value on platform_get_irq() failure.
> 
> Just return the error code itself instead.
> 
> Signed-off-by: Fabio Estevam <[email protected]>
> ---
>  drivers/usb/chipidea/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
> index 33f22bc..5590f08 100644
> --- a/drivers/usb/chipidea/core.c
> +++ b/drivers/usb/chipidea/core.c
> @@ -572,7 +572,7 @@ static int ci_hdrc_probe(struct platform_device *pdev)
>       ci->irq = platform_get_irq(pdev, 0);
>       if (ci->irq < 0) {
>               dev_err(dev, "missing IRQ\n");
> -             ret = -ENODEV;
> +             ret = ci->irq;
>               goto destroy_phy;
>       }
>  
> -- 

Change subject prefix to "usb: chipidea", and one conflict with
my next tree, applied, thanks.

-- 

Best Regards,
Peter Chen

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