]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 15 Jun 2017 08:59:25 +0000 (16:59 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 21 Jun 2017 15:25:47 +0000 (18:25 +0300)
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>
drivers/net/wireless/marvell/mwifiex/debugfs.c

index ae2b69db59940b44e3cf7f6dae2075ce28c390ae..f6f105a7d3ff4609a094118d3201f91385aa3902 100644 (file)
@@ -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);
 }