[PATCH] mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

Subsystems: marvell mwifiex wireless driver, the rest

STALE3406d

2 messages, 2 authors, 2017-06-21 · open the first message on its own page

[PATCH] mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

From: Shawn Lin <shawn.lin@rock-chips.com>
Date: 2017-06-15 09:01:54

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(-)
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);
 }
-- 
1.9.1

Re: mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

From: Kalle Valo <hidden>
Date: 2017-06-21 16:44:40

Shawn Lin [off-list ref] 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

-- 
https://patchwork.kernel.org/patch/9788425/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help