From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from lucky1.263xmail.com ([211.157.147.133]:54042 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdFOJBy (ORCPT ); Thu, 15 Jun 2017 05:01:54 -0400 From: Shawn Lin To: Amitkumar Karwar , Kalle Valo Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Nishant Sarmukadam , Ganapathi Bhat , Xinming Hu , Shawn Lin Subject: [PATCH] mwifiex: debugfs: remove redunant check of mwifiex_dfs_dir Date: Thu, 15 Jun 2017 16:59:25 +0800 Message-Id: <1497517165-145266-1-git-send-email-shawn.lin@rock-chips.com> (sfid-20170615_110204_153439_6594D200) Sender: linux-wireless-owner@vger.kernel.org List-ID: debugfs_remove already check mwifiex_dfs_dir, so remove it. Signed-off-by: Shawn Lin --- 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