From: Wolfgang Denk Date: Tue, 01 Sep 2009 21:22:47 +0200 Subject: [U-Boot] [PATCH 2/2] fsl: sys_eeprom: Fix 'may be used uninitialized' warning In-Reply-To: <20090901180613.GA10489@oksana.dev.rtsoft.ru> References: <20090901165902.GA6435@oksana.dev.rtsoft.ru> <607BBB57-C4BD-4E89-A70D-7AD1A8109F5C@kernel.crashing.org> <20090901173814.GA4471@oksana.dev.rtsoft.ru> <20090901180613.GA10489@oksana.dev.rtsoft.ru> Message-ID: <20090901192247.C245F834A950@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 Anton Vorontsov, In message <20090901180613.GA10489@oksana.dev.rtsoft.ru> you wrote: > > Another option is to turn the for loop into do {} while, so > we can avoid unitialized_var() usage. Something like that: This is much more difficult to read. 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 Witch! Witch! They'll burn ya! -- Hag, "Tomorrow is Yesterday", stardate unknown