From: Mike Frysinger Date: Mon, 6 Feb 2012 14:24:26 -0500 Subject: [U-Boot] [PATCH] davinci: cleanup davinci_sync_env_enetaddr() fucntion In-Reply-To: <1328522393-32293-1-git-send-email-manjunath.hadli@ti.com> References: <1328522393-32293-1-git-send-email-manjunath.hadli@ti.com> Message-ID: <201202061424.28250.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: