diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-05-12 15:24:56 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-05-23 10:53:03 +0200 |
commit | bdaae563e097a40e942d66a15cb3a5537f156dd5 (patch) | |
tree | 137bb0c42ad1496d20153cceff0f0013f9b12596 /drivers/net/wireless/intel/iwlwifi/mvm/tt.c | |
parent | f79968eb417574f84a06c22510cbeb414e89a809 (diff) | |
download | linux-bdaae563e097a40e942d66a15cb3a5537f156dd5.tar.gz linux-bdaae563e097a40e942d66a15cb3a5537f156dd5.tar.bz2 linux-bdaae563e097a40e942d66a15cb3a5537f156dd5.zip |
wifi: iwlwifi: tracing: fix condition to allocate buf1
There's no need to allocate buf1 if we're not going to
write anything to it, and the condition for writing is
(correctly) "hdr_len > 0 && !iwl_trace_data()". Also
allocate the event space only under the same condition.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240512152312.a11e6490d053.Ie090beea70d2f271bb22c9b0e287dbd342fb2a96@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/tt.c')
0 files changed, 0 insertions, 0 deletions