UBI: silence a warning
commit54b2c8f93d7c3ddc04b55666b878fec437d32983
authorJesper Juhl <jesper.juhl@gmail.com>
Thu, 13 Dec 2007 22:53:08 +0000 (13 23:53 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 26 Dec 2007 17:15:14 +0000 (26 19:15 +0200)
treefc7d622fcd920e98178bdf8099b4f8728b827259
parent393852ecfeec575ac78216b0eb58e4fd92f0816c
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