diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2019-09-03 21:12:09 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-09-04 18:19:43 +0200 |
commit | 4eb09e1112180672795f4238e9252531f607c7a7 (patch) | |
tree | b465ff299cba981b1a2e97dd481bc2e92cf24a49 /fs/udf | |
parent | 18c2433cb8af4938bee01a766a2389f80e73d4ae (diff) | |
download | linux-rt-4eb09e1112180672795f4238e9252531f607c7a7.tar.gz |
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: Markus Elfring <elfring@users.sourceforge.net>
Link: https://lore.kernel.org/r/a254c1d1-0109-ab51-c67a-edc5c1c4b4cd@web.de
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index 7ab29124961c..8c28e93e9b73 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c @@ -269,8 +269,7 @@ 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]); + brelse(bitmap->s_block_bitmap[i]); kvfree(bitmap); } |