[PATCH] brcmsmac: Remove unused brcms_debugfs_get_devdir

linux@treblig.org posted 1 patch 1 month, 3 weeks ago
drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c | 5 -----
drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h | 1 -
2 files changed, 6 deletions(-)
[PATCH] brcmsmac: Remove unused brcms_debugfs_get_devdir
Posted by linux@treblig.org 1 month, 3 weeks ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

brcms_debugfs_get_devdir() has been unused since it was added by commit
8e21df23894e ("brcmsmac: hardware info in debugfs")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c | 5 -----
 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
index 6d776ef6ff54..81df41c7fbb5 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c
@@ -56,11 +56,6 @@ void brcms_debugfs_detach(struct brcms_pub *drvr)
 	debugfs_remove_recursive(drvr->dbgfs_dir);
 }
 
-struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr)
-{
-	return drvr->dbgfs_dir;
-}
-
 static
 int brcms_debugfs_hardware_read(struct seq_file *s, void *data)
 {
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h
index 56898e6d789d..d30a9fa30f1b 100644
--- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h
+++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h
@@ -70,7 +70,6 @@ void brcms_debugfs_init(void);
 void brcms_debugfs_exit(void);
 void brcms_debugfs_attach(struct brcms_pub *drvr);
 void brcms_debugfs_detach(struct brcms_pub *drvr);
-struct dentry *brcms_debugfs_get_devdir(struct brcms_pub *drvr);
 void brcms_debugfs_create_files(struct brcms_pub *drvr);
 
 #endif /* _BRCMS_DEBUG_H_ */
-- 
2.46.2
Re: wifi: brcmsmac: Remove unused brcms_debugfs_get_devdir()
Posted by Kalle Valo 1 month, 1 week ago
linux@treblig.org wrote:

> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> brcms_debugfs_get_devdir() has been unused since it was added by commit
> 8e21df23894e ("brcmsmac: hardware info in debugfs")
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Patch applied to wireless-next.git, thanks.

13d21a289608 wifi: brcmsmac: Remove unused brcms_debugfs_get_devdir()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20241004004259.470853-1-linux@treblig.org/

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