From: zhong jiang Date: Sat, 8 Sep 2018 13:49:31 +0000 (+0800) Subject: infiniband: remove redundant condition check before debugfs_remove X-Git-Tag: v5.15~7737^2~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e5d60bcc8a42bfd0c888a0cf52a5a7e8398677d;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/usnic/usnic_debugfs.c b/drivers/infiniband/hw/usnic/usnic_debugfs.c index 92dc66c..a3115709 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); }