[U-Boot] [patch 1/2] fix USB initialisation procedure

Stefan Roese sr at denx.de
Thu Oct 9 16:59:54 CEST 2008


On Thursday 09 October 2008, Markus Klotzbücher wrote:
> On Thu, Oct 09, 2008 at 03:19:22PM +0200, Wolfgang Denk wrote:
> > Dear Jean-Christophe PLAGNIOL-VILLARD,
> >
> > In message <20081009121044.GA25278 at game.jcrosoft.org> you wrote:
> > > >  	if (dev->status == 0)
> > > >  		return dev->act_len;
> > >
> > > please add {} to if too or remove the else
> > >
> > > > -	else
> > > > +	else {
> > > > +		/* Let's wait a while for the timeout to elaps.
> > > > +		 * it has no real use, but it keeps the interface happy. */
> > > > +		wait_ms(timeout);
> > > >  		return -1;
> > > > +	}
> >
> > Good catch.
>
> Quite honest, I think this is *way* to pedantic. I'd really prefer to
> let people who are contributing significantly do their work instead of
> bugging them with such rare coding style violations.

ACK from me here. "Minor" coding style violations like these braces issue or 
too long lines should not delay patches.

> > Actually the "else" should be removed.
>
> How so?

Because of the "return dev->act_len;" above. :)

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================


More information about the U-Boot mailing list