aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2012-06-25 16:47:49 -0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-07-20 03:27:25 -0400
commit782759b9f5f5223e0962af60c3457c912fab755f (patch)
treeabed3fe088310bf98be30ab97a5017597b430d65 /fs/ubifs
parentc6727932cfdb13501108b16c38463c09d5ec7a74 (diff)
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c
index a6d42efc76d2..390198d91e6d 100644
--- a/fs/ubifs/dir.c
+++ b/fs/ubifs/dir.c
@@ -969,7 +969,7 @@ static int ubifs_rename(struct inode *old_dir, struct dentry *old_dentry,
969 struct ubifs_budget_req ino_req = { .dirtied_ino = 1, 969 struct ubifs_budget_req ino_req = { .dirtied_ino = 1,
970 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; 970 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) };
971 struct timespec time; 971 struct timespec time;
972 unsigned int saved_nlink; 972 unsigned int uninitialized_var(saved_nlink);
973 973
974 /* 974 /*
975 * Budget request settings: deletion direntry, new direntry, removing 975 * Budget request settings: deletion direntry, new direntry, removing