diff mbox series

wifi: iwlwifi: mvm: remove unused iwl_dbgfs_is_match()

Message ID 20230216205754.d500dcc2e90c.Id87df297263f86b5bba002f7cbb387abc13adf53@changeid (mailing list archive)
State Accepted
Commit d9fcf94b8f68f4a0b440d26a1143932525c2f3dd
Delegated to: Kalle Valo
Headers show
Series wifi: iwlwifi: mvm: remove unused iwl_dbgfs_is_match() | expand

Commit Message

Johannes Berg Feb. 16, 2023, 7:57 p.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

This inline function is unused, remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Kalle Valo Feb. 17, 2023, 9:35 a.m. UTC | #1
Johannes Berg <johannes@sipsolutions.net> wrote:

> From: Johannes Berg <johannes.berg@intel.com>
> 
> This inline function is unused, remove it.
> 
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Patch applied to wireless-next.git, thanks.

d9fcf94b8f68 wifi: iwlwifi: mvm: remove unused iwl_dbgfs_is_match()
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
index 78d8b37eb71a..3779ac040ba0 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
@@ -438,13 +438,6 @@  static ssize_t iwl_dbgfs_bf_params_read(struct file *file,
 	return simple_read_from_buffer(user_buf, count, ppos, buf, pos);
 }
 
-static inline char *iwl_dbgfs_is_match(char *name, char *buf)
-{
-	int len = strlen(name);
-
-	return !strncmp(name, buf, len) ? buf + len : NULL;
-}
-
 static ssize_t iwl_dbgfs_os_device_timediff_read(struct file *file,
 						 char __user *user_buf,
 						 size_t count, loff_t *ppos)