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

Commit 6fde2242 authored by Markus Elfring's avatar Markus Elfring Committed by Bob Peterson
Browse files

GFS2: Delete an unnecessary check before the function call "iput"



The iput() 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>
Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
parent acc546fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -910,7 +910,6 @@ static int init_per_node(struct gfs2_sbd *sdp, int undo)
fail_ut_i:
	iput(sdp->sd_sc_inode);
fail:
	if (pn)
	iput(pn);
	return error;
}