diff mbox

mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

Message ID 1497517165-145266-1-git-send-email-shawn.lin@rock-chips.com (mailing list archive)
State Accepted
Commit 7c26029f87a3865c0dd9e63c306314196cc48587
Delegated to: Kalle Valo
Headers show

Commit Message

Shawn Lin June 15, 2017, 8:59 a.m. UTC
debugfs_remove already check mwifiex_dfs_dir, so remove it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
---

 drivers/net/wireless/marvell/mwifiex/debugfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Kalle Valo June 21, 2017, 3:26 p.m. UTC | #1
Shawn Lin <shawn.lin@rock-chips.com> wrote:

> debugfs_remove already check mwifiex_dfs_dir, so remove it.
> 
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>

Patch applied to wireless-drivers-next.git, thanks.

7c26029f87a3 mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir
diff mbox

Patch

diff --git a/drivers/net/wireless/marvell/mwifiex/debugfs.c b/drivers/net/wireless/marvell/mwifiex/debugfs.c
index ae2b69d..f6f105a 100644
--- a/drivers/net/wireless/marvell/mwifiex/debugfs.c
+++ b/drivers/net/wireless/marvell/mwifiex/debugfs.c
@@ -1046,6 +1046,5 @@ 
 void
 mwifiex_debugfs_remove(void)
 {
-	if (mwifiex_dfs_dir)
-		debugfs_remove(mwifiex_dfs_dir);
+	debugfs_remove(mwifiex_dfs_dir);
 }