diff options
| author | Anjaneyulu <[email protected]> | 2024-12-31 11:59:12 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2025-01-13 14:34:07 +0000 |
| commit | 44b1c90c91c4f8b9dabaad80cbbeb9a35c47172b (patch) | |
| tree | 9bc58e645cab3fcd005d12aa95f4abfba9c0d43e | |
| parent | wifi: iwlwifi: mvm: handle version 3 GET_TAS_STATUS notification (diff) | |
| download | kernel-44b1c90c91c4f8b9dabaad80cbbeb9a35c47172b.tar.gz kernel-44b1c90c91c4f8b9dabaad80cbbeb9a35c47172b.zip | |
wifi: iwlwifi: mvm: remove unused tas_rsp variable
optimize local variable usage in iwl_dbgfs_tas_get_status_read().
Signed-off-by: Anjaneyulu <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20241231135726.fab845da5c6f.Ica84a4c0df33db9c9b6baef28893bb42e1f367b7@changeid
Signed-off-by: Johannes Berg <[email protected]>
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c index f6f5117b93c0..83e3c1160362 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c @@ -542,8 +542,7 @@ static ssize_t iwl_dbgfs_tas_get_status_read(struct file *file, size_t count, loff_t *ppos) { struct iwl_mvm *mvm = file->private_data; - struct iwl_mvm_tas_status_resp tas_rsp; - struct iwl_mvm_tas_status_resp *rsp = &tas_rsp; + struct iwl_mvm_tas_status_resp *rsp = NULL; static const size_t bufsz = 1024; char *buff, *pos, *endpos; const char * const tas_dis_reason[TAS_DISABLED_REASON_MAX] = { |
