提交 6fde2242 编写于 作者: M Markus Elfring 提交者: Bob Peterson

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: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NBob Peterson <rpeterso@redhat.com>
上级 acc546fd
......@@ -910,8 +910,7 @@ static int init_per_node(struct gfs2_sbd *sdp, int undo)
fail_ut_i:
iput(sdp->sd_sc_inode);
fail:
if (pn)
iput(pn);
iput(pn);
return error;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册