diff options
author | Allen Pais | 2020-11-03 14:48:18 +0530 |
---|---|---|
committer | Jakub Kicinski | 2020-11-07 10:40:56 -0800 |
commit | da1cad7342a14c7027d95e361878b3442f1d93ad (patch) | |
tree | 7b494d2ca608bff2695aaea5e4c19b7f1b438ca7 /net/mac80211/tx.c | |
parent | c6533ca87a061faac419846d792f6afcec755ffd (diff) |
net: mac80211: convert tasklets to use new tasklet_setup() API
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: Allen Pais <apais@linux.microsoft.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 56a4d0d20a26..5f05f4651dd7 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -4418,9 +4418,10 @@ static bool ieee80211_tx_pending_skb(struct ieee80211_local *local, /* * Transmit all pending packets. Called from tasklet. */ -void ieee80211_tx_pending(unsigned long data) +void ieee80211_tx_pending(struct tasklet_struct *t) { - struct ieee80211_local *local = (struct ieee80211_local *)data; + struct ieee80211_local *local = from_tasklet(local, t, + tx_pending_tasklet); unsigned long flags; int i; bool txok; |