[U-Boot] [PATCH] davinci: cleanup davinci_sync_env_enetaddr() fucntion

2012-02-06 Thread Manjunath Hadli
check for the return status for eth_getenv_enetaddr_by_index() and eth_setenv_enetaddr() functions and print appropriate message on failure. Also convert debug message to printf(). Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Tom Rini tr...@ti.com ---

Re: [U-Boot] [PATCH] davinci: cleanup davinci_sync_env_enetaddr() fucntion

2012-02-06 Thread Mike Frysinger
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