Re: [U-Boot] [PATCH] cmd_ubi: Fix uninitialized variable warning

2010-04-09 Thread Stefan Roese
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 wh

[U-Boot] [PATCH] cmd_ubi: Fix uninitialized variable warning

2010-04-04 Thread Peter Tyser
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