From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 9 Apr 2010 16:35:55 +0200 Subject: [U-Boot] [PATCH] cmd_ubi: Fix uninitialized variable warning In-Reply-To: <1270438850-26841-1-git-send-email-ptyser@xes-inc.com> References: <1270438850-26841-1-git-send-email-ptyser@xes-inc.com> Message-ID: <201004091635.55233.sr@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 On Monday 05 April 2010 05:40:50 Peter Tyser wrote: > gcc 3.4.6 previously reported the following error on many MIPS boards > which utilize UBI: > cmd_ubi.c:193: warning: 'vol' might be used uninitialized in this > function > > The current code is structured such that 'vol' will never be used when > it is NULL anyway, but gcc isn't smart enough to figure this out. Applied to u-boot-ubi/master. Thanks. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de