Re: [PATCH] infiniband: remove redundant condition check before debugfs_remove

2018-09-11 Thread Jason Gunthorpe
On Sat, Sep 08, 2018 at 09:49:31PM +0800, zhong jiang wrote: > debugfs_remove has taken the IS_ERR_OR_NULL into account. Just > remove the unnecessary condition. > > Signed-off-by: zhong jiang > --- > drivers/infiniband/hw/usnic/usnic_debugfs.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deleti

[PATCH] infiniband: remove redundant condition check before debugfs_remove

2018-09-08 Thread zhong jiang
debugfs_remove has taken the IS_ERR_OR_NULL into account. Just remove the unnecessary condition. Signed-off-by: zhong jiang --- drivers/infiniband/hw/usnic/usnic_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usnic_debugfs.c b/drivers