Skip to content

Commit

Permalink
ext4: remove unneeded code in ext4_unlink
Browse files Browse the repository at this point in the history
Setting retval to zero is not needed in ext4_unlink.
Remove unneeded code.

Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Ashish Sangwan <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
  • Loading branch information
namjaejeon authored and tytso committed Nov 25, 2014
1 parent b003b52 commit 31fc006
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ext4/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 31fc006

Please sign in to comment.