Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfcba2d0 authored by Markus Elfring's avatar Markus Elfring Committed by Theodore Ts'o
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 31fc006b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2712,7 +2712,6 @@ int ext4_mb_release(struct super_block *sb)
	}
	kfree(sbi->s_mb_offsets);
	kfree(sbi->s_mb_maxs);
	if (sbi->s_buddy_cache)
	iput(sbi->s_buddy_cache);
	if (sbi->s_mb_stats) {
		ext4_msg(sb, KERN_INFO,