Browse Source

mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

debugfs_remove already check mwifiex_dfs_dir, so remove it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Shawn Lin 8 years ago
parent
commit
7c26029f87
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/net/wireless/marvell/mwifiex/debugfs.c

+ 1 - 2
drivers/net/wireless/marvell/mwifiex/debugfs.c

@@ -1046,6 +1046,5 @@ mwifiex_debugfs_init(void)
 void
 mwifiex_debugfs_remove(void)
 {
-	if (mwifiex_dfs_dir)
-		debugfs_remove(mwifiex_dfs_dir);
+	debugfs_remove(mwifiex_dfs_dir);
 }