wifi: ath6kl: Remove error checking for debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Mon, 24 Jul 2023 10:11:08 +0000 (13:11 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Tue, 25 Jul 2023 14:30:54 +0000 (17:30 +0300)
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>
Link: https://lore.kernel.org/r/20230714014358.514-1-machel@vivo.com
drivers/net/wireless/ath/ath6kl/debug.c

index 433a047f3747bc01e3c3b604bc42a94a4cecc47c..b837d31416dfe8e5b7ee03e98cbbdce40474dbcf 100644 (file)
@@ -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);