projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b003b52
)
ext4: remove unneeded code in ext4_unlink
author
Namjae Jeon
<namjae.jeon@samsung.com>
Tue, 25 Nov 2014 21:34:38 +0000
(16:34 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 25 Nov 2014 21:34:38 +0000
(16:34 -0500)
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>
fs/ext4/namei.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index 426211882f7274b496c5c94ecac30fbd18a57325..2291923dae4e6c4cf351dcdb7d88d59f9314590d 100644
(file)
--- 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);