aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2014-11-25 20:01:37 -0500
committerTheodore Ts'o <tytso@mit.edu>2014-11-25 20:01:37 -0500
commitbfcba2d0352f7916e98a1cec54c1c2473da6f4d6 (patch)
tree654f2cebb323496ec94f85c0934afe6aa1931613 /fs
parent31fc006b12f2c7e88fa5ee8f7f17ed0f85c9e4b8 (diff)
ext4: Remove an unnecessary check for NULL before iput()
The iput() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/mballoc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index f1c25f83fc7d..8d1e60214ef0 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2712,8 +2712,7 @@ int ext4_mb_release(struct super_block *sb)
2712 } 2712 }
2713 kfree(sbi->s_mb_offsets); 2713 kfree(sbi->s_mb_offsets);
2714 kfree(sbi->s_mb_maxs); 2714 kfree(sbi->s_mb_maxs);
2715 if (sbi->s_buddy_cache) 2715 iput(sbi->s_buddy_cache);
2716 iput(sbi->s_buddy_cache);
2717 if (sbi->s_mb_stats) { 2716 if (sbi->s_mb_stats) {
2718 ext4_msg(sb, KERN_INFO, 2717 ext4_msg(sb, KERN_INFO,
2719 "mballoc: %u blocks %u reqs (%u success)", 2718 "mballoc: %u blocks %u reqs (%u success)",