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: zhong jiang <zhongjiang@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
59c2a30d36
commit
761cb7cdef
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue