diff options
| author | Johannes Berg <johannes.berg@intel.com> | 2024-11-22 11:42:26 +0300 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2024-12-04 18:10:52 +0300 |
| commit | 8e66f6c6738e5b458345cd5f75ef6da035d95599 (patch) | |
| tree | dc1fcf1a02fbdc80c0aa25f9e8ca9ad690dbbe8d /net/mac80211/debugfs.c | |
| parent | f42d22d3f79639c1b4e41daf28dad2505d6a5a8b (diff) | |
| download | linux-8e66f6c6738e5b458345cd5f75ef6da035d95599.tar.xz | |
wifi: mac80211: use wiphy guard
The wiphy guard simplifies some code here, so use it.
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://patch.msgid.link/20241122094225.cea65b2d2fd4.Icc168c4bbeddec98ea096aee9077211a7b88b69e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/debugfs.c')
| -rw-r--r-- | net/mac80211/debugfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index be2e486907f9..bf0a2902d93c 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -284,7 +284,8 @@ static ssize_t aql_txq_limit_write(struct file *file, q_limit_low_old = local->aql_txq_limit_low[ac]; q_limit_high_old = local->aql_txq_limit_high[ac]; - wiphy_lock(local->hw.wiphy); + guard(wiphy)(local->hw.wiphy); + local->aql_txq_limit_low[ac] = q_limit_low; local->aql_txq_limit_high[ac] = q_limit_high; @@ -296,7 +297,6 @@ static ssize_t aql_txq_limit_write(struct file *file, sta->airtime[ac].aql_limit_high = q_limit_high; } } - wiphy_unlock(local->hw.wiphy); return count; } |
