mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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>
This commit is contained in:
parent
a7ee18bdee
commit
3e5d60bcc8
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue