remove unnecessary iput checks
[ext4-patch-queue.git] / remove-unneeded-code-in-ext4_unlink
blobabf8cddbf4742eafcb439a0b47798104ef49389f
1 ext4: remove unneeded code in ext4_unlink
3 From: Namjae Jeon <namjae.jeon@samsung.com>
5 Setting retval to zero is not needed in ext4_unlink.
6 Remove unneeded code.
8 Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
9 Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
10 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 ---
12  fs/ext4/namei.c | 1 -
13  1 file changed, 1 deletion(-)
15 diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
16 index 4262118..2291923 100644
17 --- a/fs/ext4/namei.c
18 +++ b/fs/ext4/namei.c
19 @@ -2814,7 +2814,6 @@ static int ext4_unlink(struct inode *dir, struct dentry *dentry)
20                 ext4_orphan_add(handle, inode);
21         inode->i_ctime = ext4_current_time(inode);
22         ext4_mark_inode_dirty(handle, inode);
23 -       retval = 0;
25  end_unlink:
26         brelse(bh);
27 -- 
28 1.7.11-rc0
31 To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
32 the body of a message to majordomo@vger.kernel.org
33 More majordomo info at  http://vger.kernel.org/majordomo-info.html