On Monday 06 February 2012 04:59:53 Manjunath Hadli wrote: > --- a/arch/arm/cpu/arm926ejs/davinci/misc.c > +++ b/arch/arm/cpu/arm926ejs/davinci/misc.c > > + ret = eth_getenv_enetaddr_by_index("eth", 0, env_enetaddr); > + if (ret && !memcmp(env_enetaddr, "\0\0\0\0\0\0", 6)) {
i don't think the memcmp() is necessary. the core code already calls is_valid_ether_addr() and one of the checks in there is for all zeros. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot