Skip to content

Commit 3e5d60b

Browse files
xiongzhongjiangjgunthorpe
authored andcommitted
infiniband: remove redundant condition check before debugfs_remove
debugfs_remove has taken the IS_ERR_OR_NULL into account. Just remove the unnecessary condition. Signed-off-by: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent a7ee18b commit 3e5d60b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/infiniband/hw/usnic/usnic_debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,5 @@ void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow)
165165

166166
void usnic_debugfs_flow_remove(struct usnic_ib_qp_grp_flow *qp_flow)
167167
{
168-
if (!IS_ERR_OR_NULL(qp_flow->dbgfs_dentry))
169-
debugfs_remove(qp_flow->dbgfs_dentry);
168+
debugfs_remove(qp_flow->dbgfs_dentry);
170169
}

0 commit comments

Comments
 (0)