2017-06-15 09:01:54

by Shawn Lin

[permalink] [raw]
Subject: [PATCH] mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

debugfs_remove already check mwifiex_dfs_dir, so remove it.

Signed-off-by: Shawn Lin <[email protected]>
---

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


2017-06-21 16:44:40

by Kalle Valo

[permalink] [raw]
Subject: Re: mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir

Shawn Lin <[email protected]> wrote:

> debugfs_remove already check mwifiex_dfs_dir, so remove it.
>
> Signed-off-by: Shawn Lin <[email protected]>

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