mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 17:51:17 +07:00
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: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
This commit is contained in:
parent
acc546fd61
commit
6fde22426b
@ -910,8 +910,7 @@ static int init_per_node(struct gfs2_sbd *sdp, int undo)
|
|||||||
fail_ut_i:
|
fail_ut_i:
|
||||||
iput(sdp->sd_sc_inode);
|
iput(sdp->sd_sc_inode);
|
||||||
fail:
|
fail:
|
||||||
if (pn)
|
iput(pn);
|
||||||
iput(pn);
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user