]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: delete unnecessary checks before brelse()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 13 Jun 2020 17:12:24 +0000 (19:12 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Aug 2020 04:08:56 +0000 (00:08 -0400)
commit2d28f632ab09af13f0f52be02c5c616b3a8d839c
tree3a663eed64cf3194c2521c2ef87c5ff63441147d
parent6886e4790db4e3ca1bfb57c5a10aa8b12c589850
ext4: delete unnecessary checks before brelse()

The brelse() function tests whether its argument is NULL
and then returns immediately.
Thus remove the tests which are not needed around the shown calls.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/0d713702-072f-a89c-20ec-ca70aa83a432@web.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/xattr.c