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

Commit 4eb09e11 authored by Markus Elfring's avatar Markus Elfring Committed by Jan Kara
Browse files

fs-udf: 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/a254c1d1-0109-ab51-c67a-edc5c1c4b4cd@web.de


Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 18c2433c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -269,7 +269,6 @@ static void udf_sb_free_bitmap(struct udf_bitmap *bitmap)
	int nr_groups = bitmap->s_nr_groups;

	for (i = 0; i < nr_groups; i++)
		if (bitmap->s_block_bitmap[i])
		brelse(bitmap->s_block_bitmap[i]);

	kvfree(bitmap);