Skip to contentSkip to conversation

wifi: ath6kl: Remove error checking for debugfs_create_dir()

PATCH Superseded Wang Ming 2 participants 3 messages Jul 26, 2023 – Aug 2, 2023 Atheros ATH6KL wireless driver

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Wang Ming

author
#0 lore raw

PATCH v4 1/1 wifi: ath6kl: Remove error checking for debugfs_create_dir()

It is expected that most callers should _ignore_ the errors return by debugfs_create_dir() in ath6kl_debug_init_fs().

---
 drivers/net/wireless/ath/ath6kl/debug.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/wireless/ath/ath6kl/debug.c +0 -2
index 433a047f3747..b837d31416df 100644
@@ -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);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Wang Ming

It is expected that most callers should _ignore_ the errors return by debugfs_create_dir() in ath6kl_debug_init_fs().

ath6kl patches go to ath-next, not net-next. So do *not* put net-next into Subject. No need to resend because of this.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
In reply to Wang Ming
Quoted 4 lines · Wang Ming

It is expected that most callers should _ignore_ the errors return by debugfs_create_dir() in ath6kl_debug_init_fs().

This has been already applied:
https://git.kernel.org/kvalo/ath/c/1301783c8def

Patch set to Superseded.

Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches