ubifs: Fix compiler warning

The compiler warns that 'saved_nlink' declared in line 980
may be used uninitialized.

Change-Id: Ie725c0efe949213b1281a70c779a3167b1961327
Acked-by: Kaushik Sikdar <ksikdar@qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
This commit is contained in:
Rohit Vaswani 2012-06-14 13:03:06 -07:00 committed by Stephen Boyd
parent 2dc17262b5
commit adc2fa8f07

View file

@ -977,7 +977,7 @@ static int ubifs_rename(struct inode *old_dir, struct dentry *old_dentry,
struct ubifs_budget_req ino_req = { .dirtied_ino = 1,
.dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) };
struct timespec time;
unsigned int saved_nlink;
unsigned int saved_nlink = 0;
/*
* Budget request settings: deletion direntry, new direntry, removing