From: Wolfgang Denk Date: Sat, 03 Mar 2012 15:44:48 +0100 Subject: [U-Boot] [PATCH] [PATCH] net/eth.c: Avoid Warning when ethxaddr is not set In-Reply-To: <1330780211-90427-1-git-send-email-gwenhael.goavec-merou@armadeus.com> References: <1330780211-90427-1-git-send-email-gwenhael.goavec-merou@armadeus.com> Message-ID: <20120303144448.BD2B882301@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Gwenhael Goavec-Merou, In message <1330780211-90427-1-git-send-email-gwenhael.goavec-merou@armadeus.com> you wrote: > The return value for eth_getenv_enetaddr_by_index produces > a Warning when ethXaddr is not set (env_enetaddr is equal > to 00:00:00:00:00:00). > > The validity of the mac address is tested later in this > function to avoid to write an erroneous address. > > The test of the function's return is consequently useless > and adds a warning. Which use case do you have in mind? Why do you think this warning is bad? I tend to consider it helpful instead. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "No matter where you go, there you are..." - Buckaroo Banzai