]> asedeno.scripts.mit.edu Git - linux.git/commit
ext2: Delete an unnecessary check before brelse()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Sep 2019 12:40:18 +0000 (14:40 +0200)
committerJan Kara <jack@suse.cz>
Wed, 4 Sep 2019 16:19:43 +0000 (18:19 +0200)
commit18c2433cb8af4938bee01a766a2389f80e73d4ae
tree1f5e54fe7f3c2955a502f93a57ad172fb7ac0c9a
parent8b47ea6c21cbf169c4c41ad6de1ac12fba5ddd8e
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: Markus Elfring <elfring@users.sourceforge.net>
Link: https://lore.kernel.org/r/51dea296-2207-ebc0-bac3-13f3e5c3b235@web.de
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/super.c