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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ int brcms_debugfs_attach(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);
}