
6 Feb
2012
6 Feb
'12
8:24 p.m.
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