[PATCH] irda/sa1100_ir: check return value of startup hook

Dmitry Artamonow mad_soft at inbox.ru
Fri Oct 9 16:12:24 EDT 2009


On 16:14 Fri 09 Oct     , Sergei Shtylyov wrote:

[...]
> > -	if (si->pdata->startup)
> > -		si->pdata->startup(si->dev);
> > +	if (si->pdata->startup)	{
> > +		ret = si->pdata->startup(si->dev);
> > +		if (ret)
> > +			return ret;
> > +		}
> 
>     Overindented brace.
> 

Nice catch, thanks!

Updated patch in attachment.

-- 
Best regards,
Dmitry "MAD" Artamonow



More information about the linux-arm-kernel mailing list