[U-Boot] [PATCH] [v2] tsec: fix the return value for tsec_eth_init() and tsec_standard_init()

Timur Tabi timur at freescale.com
Tue Jun 8 16:34:28 CEST 2010


Mike Frysinger wrote:
> the documentation currently states that a negative value is permissible and 
> thus "int" is correct.  as for the code that actually reads the result, that 
> is by & large common code, so logic along those lines isnt terribly important.

The conclusion I drew from Andy's comments is that functions which
initialize more than one device should not return a negative value.  That
makes sense to me.  Perhaps the documentation should be updated to
incorporate this idea?



More information about the U-Boot mailing list