aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2014-11-25 16:34:38 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-11-25 16:34:38 -0500
commit31fc006b12f2c7e88fa5ee8f7f17ed0f85c9e4b8 (patch)
tree3a37ea191d13fe064ddc73d769c272221e5b4655
parentb003b52496b9bea9b186b127aea730b79d2a83bd (diff)
ext4: remove unneeded code in ext4_unlink
Setting retval to zero is not needed in ext4_unlink. Remove unneeded code. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--fs/ext4/namei.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c
index 426211882f72..2291923dae4e 100644
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -2814,7 +2814,6 @@ static int ext4_unlink(struct inode *dir, struct dentry *dentry)
2814 ext4_orphan_add(handle, inode); 2814 ext4_orphan_add(handle, inode);
2815 inode->i_ctime = ext4_current_time(inode); 2815 inode->i_ctime = ext4_current_time(inode);
2816 ext4_mark_inode_dirty(handle, inode); 2816 ext4_mark_inode_dirty(handle, inode);
2817 retval = 0;
2818 2817
2819end_unlink: 2818end_unlink:
2820 brelse(bh); 2819 brelse(bh);