UBI: silence a warning
authorJesper Juhl <jesper.juhl@gmail.com>
Thu, 13 Dec 2007 22:53:08 +0000 (23:53 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 25 May 2009 14:08:18 +0000 (17:08 +0300)
commit497099d3314aba2955089c4f3c345a02114b2bd1
treedbd49af578e63501d7bd94dbd3d9b9afdd1d47b7
parented031e71e1b4f0b0d7a3115821daffd6eba62a03
UBI: silence a warning

This patch silences the following warning :

  drivers/mtd/ubi/vmt.c:73: warning: 'ret' may be used uninitialized in this function

gcc can't see that we always initialize ret in all situations where it is
actually used. The one case where it's not initialized is when we BUG(),
but gcc doesn't know that we won't then continue and use an uninitialized
'ret'.

This patch results in code that does exactely the same as before, but it
also makes gcc shut up, so we generate one less line of warning noise.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/vmt.c