From: Namjae Jeon Date: Tue, 25 Nov 2014 21:34:38 +0000 (-0500) Subject: ext4: remove unneeded code in ext4_unlink X-Git-Tag: v3.19-rc1~109^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=31fc006b12f2c7e88fa5ee8f7f17ed0f85c9e4b8;p=karo-tx-linux.git 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 Signed-off-by: Ashish Sangwan Signed-off-by: Theodore Ts'o --- 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) ext4_orphan_add(handle, inode); inode->i_ctime = ext4_current_time(inode); ext4_mark_inode_dirty(handle, inode); - retval = 0; end_unlink: brelse(bh);