gfs2: Delete an unnecessary check before brelse()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 3 Sep 2019 13:10:05 +0000 (15:10 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 4 Sep 2019 18:22:17 +0000 (20:22 +0200)
commitbccaef90738581038ee609e946f36812bd6fb1b3
tree2cb18b48bc17f3e6e0d918deb799d422a4ab89e9
parent45eb05042d5667408d101a8c056f70a8e8ac27f6
gfs2: 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.

[The same applies to brelse() in gfs2_dir_no_add (which Coccinelle
apparently missed), so fix that as well.]

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/dir.c
fs/gfs2/dir.h