wifi: cw1200: remove RCU STA pointer handling in TX
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 Sep 2022 19:29:10 +0000 (21:29 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 7 Sep 2022 08:02:59 +0000 (11:02 +0300)
commitdf8e1af22cee900826112e8e4612cbeb2b168929
tree39c5ab0d467954e95f6052a1f52075f6ea37ece1
parentfbe7e18581ef55114258843358727c0cfeaa2860
wifi: cw1200: remove RCU STA pointer handling in TX

We can call this in one of two ways: through mac80211, where
we're already in an RCU read-side critical section, or from
some other code in the driver where this pointer can only be
NULL. In any case, we get a 'free' already protected pointer
to the sta through info->control.sta, so we can use it on
the stack without any further protection.

Remove the rcu_dereference() and critical section.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220904212910.e5bc20dd17bf.Ib570ff7fde33c2b6eddef493a3541fa04eb47181@changeid
drivers/net/wireless/st/cw1200/txrx.c