diff mbox series

[net,v3] wifi: ath6kl: Remove error checking for debugfs_create_dir()

Message ID 20230714014358.514-1-machel@vivo.com (mailing list archive)
State Accepted
Commit 1301783c8def21fb5e1658676f36d75fff15c571
Delegated to: Kalle Valo
Headers show
Series [net,v3] wifi: ath6kl: Remove error checking for debugfs_create_dir() | expand

Commit Message

Wang Ming July 14, 2023, 1:43 a.m. UTC
It is expected that most callers should _ignore_ the errors
return by debugfs_create_dir() in ath6kl_debug_init_fs().

Signed-off-by: Wang Ming <machel@vivo.com>
---
 drivers/net/wireless/ath/ath6kl/debug.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Kalle Valo July 20, 2023, 8 a.m. UTC | #1
Wang Ming <machel@vivo.com> writes:

> It is expected that most callers should _ignore_ the errors
> return by debugfs_create_dir() in ath6kl_debug_init_fs().
>
> Signed-off-by: Wang Ming <machel@vivo.com>

This should go to ath-next, not net.
Kalle Valo July 25, 2023, 2:31 p.m. UTC | #2
Wang Ming <machel@vivo.com> wrote:

> It is expected that most callers should _ignore_ the errors
> return by debugfs_create_dir() in ath6kl_debug_init_fs().
> 
> Signed-off-by: Wang Ming <machel@vivo.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>

Patch applied to ath-next branch of ath.git, thanks.

1301783c8def wifi: ath6kl: Remove error checking for debugfs_create_dir()
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath6kl/debug.c b/drivers/net/wireless/ath/ath6kl/debug.c
index 433a047f3747..b837d31416df 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.c
+++ b/drivers/net/wireless/ath/ath6kl/debug.c
@@ -1793,8 +1793,6 @@  int ath6kl_debug_init_fs(struct ath6kl *ar)
 {
 	ar->debugfs_phy = debugfs_create_dir("ath6kl",
 					     ar->wiphy->debugfsdir);
-	if (!ar->debugfs_phy)
-		return -ENOMEM;
 
 	debugfs_create_file("tgt_stats", 0400, ar->debugfs_phy, ar,
 			    &fops_tgt_stats);