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

Commit 18c2433c authored by Markus Elfring's avatar Markus Elfring Committed by Jan Kara
Browse files

ext2: Delete an unnecessary check before brelse()



The brelse() 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>
Link: https://lore.kernel.org/r/51dea296-2207-ebc0-bac3-13f3e5c3b235@web.de


Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 8b47ea6c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -162,7 +162,6 @@ static void ext2_put_super (struct super_block * sb)
	}
	db_count = sbi->s_gdb_count;
	for (i = 0; i < db_count; i++)
		if (sbi->s_group_desc[i])
		brelse(sbi->s_group_desc[i]);
	kfree(sbi->s_group_desc);
	kfree(sbi->s_debts);