UBIFS: fix compilation warning
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Mon, 25 Jun 2012 20:47:49 +0000 (17:47 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Dec 2012 19:46:35 +0000 (11:46 -0800)
commit32e11d55e7997fe45c452b71014ee934054a1245
tree10bf1ed1a18b8a68258a8bf5a2802e4517100a1c
parent0f4475cfaaf80e34ea5496a93ce579fe8c6950d5
UBIFS: fix compilation warning

commit 782759b9f5f5223e0962af60c3457c912fab755f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ubifs/dir.c