aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/usnic
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-09-08 21:49:31 +0800
committerJason Gunthorpe <jgg@mellanox.com>2018-09-11 09:37:05 -0600
commit3e5d60bcc8a42bfd0c888a0cf52a5a7e8398677d (patch)
tree2b677afbba06543c5353dd5ae130395c33fffe8a /drivers/infiniband/hw/usnic
parentRDMA/mlx5: Allow creating a matcher for a NIC TX flow table (diff)
downloadlinux-dev-3e5d60bcc8a42bfd0c888a0cf52a5a7e8398677d.tar.xz
linux-dev-3e5d60bcc8a42bfd0c888a0cf52a5a7e8398677d.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/usnic')
-rw-r--r--drivers/infiniband/hw/usnic/usnic_debugfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_debugfs.c b/drivers/infiniband/hw/usnic/usnic_debugfs.c
index 92dc66cc2d50..a3115709fb03 100644
--- a/drivers/infiniband/hw/usnic/usnic_debugfs.c
+++ b/drivers/infiniband/hw/usnic/usnic_debugfs.c
@@ -165,6 +165,5 @@ void usnic_debugfs_flow_add(struct usnic_ib_qp_grp_flow *qp_flow)
void usnic_debugfs_flow_remove(struct usnic_ib_qp_grp_flow *qp_flow)
{
- if (!IS_ERR_OR_NULL(qp_flow->dbgfs_dentry))
- debugfs_remove(qp_flow->dbgfs_dentry);
+ debugfs_remove(qp_flow->dbgfs_dentry);
}