projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ee18b
)
infiniband: remove redundant condition check before debugfs_remove
author
zhong jiang
<zhongjiang@huawei.com>
Sat, 8 Sep 2018 13:49:31 +0000
(21:49 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Tue, 11 Sep 2018 15:37:05 +0000
(09:37 -0600)
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>
drivers/infiniband/hw/usnic/usnic_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/usnic/usnic_debugfs.c
b/drivers/infiniband/hw/usnic/usnic_debugfs.c
index 92dc66cc2d50a06ea69fb259f713784a26868e2b..a3115709fb0347759db8433c273e36d7794285f4 100644
(file)
--- 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);
}