UBIFS: fix compilation warning
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Mon, 25 Jun 2012 20:47:49 +0000 (17:47 -0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 20 Feb 2015 22:05:23 +0000 (00:05 +0200)
commiteb894ecfe841e855117facfbce1baa536bbc9bc1
treebcbf9706f3ad20502ca32f09ad07441ac0dc5a5d
parent775b8c741b47590f6f472e16e41064e446bb5ecf
UBIFS: fix compilation warning

Fix the following compilation warning:

fs/ubifs/dir.c: In function 'ubifs_rename':
fs/ubifs/dir.c:972:15: warning: 'saved_nlink' may be used uninitialized
in this function

Use the 'uninitialized_var()' macro to get rid of this false-positive.

Artem: massaged the patch a bit.

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/dir.c