Commit 761cb7cd authored by zhong jiang's avatar zhong jiang Committed by Kalle Valo

brcm80211: remove redundant condition check before debugfs_remove_recursive

debugfs_remove_recursive has taken IS_ERR_OR_NULL into account. So just
remove the condition check before debugfs_remove_recursive.
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 59c2a30d
...@@ -62,7 +62,6 @@ int brcms_debugfs_attach(struct brcms_pub *drvr) ...@@ -62,7 +62,6 @@ int brcms_debugfs_attach(struct brcms_pub *drvr)
void brcms_debugfs_detach(struct brcms_pub *drvr) void brcms_debugfs_detach(struct brcms_pub *drvr)
{ {
if (!IS_ERR_OR_NULL(drvr->dbgfs_dir))
debugfs_remove_recursive(drvr->dbgfs_dir); debugfs_remove_recursive(drvr->dbgfs_dir);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment