diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-05-27 14:35:29 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-05-28 12:52:34 +0300 |
commit | bdcc57a116062163d2d7547dcf68a1762c1651e6 (patch) | |
tree | 8241381713c82ff766ec8e247f29f9d8106139c5 /testmode.c | |
parent | 3945264468ebd374d5db98758f9428822ef78251 (diff) |
mt76: testmode: remove unnecessary function calls in mt76_testmode_free_skb
Get rid of unnecessary function calls in mt76_testmode_free_skb routine
since they are already managed by dev_kfree_skb
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'testmode.c')
-rw-r--r-- | testmode.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -88,17 +88,8 @@ static void mt76_testmode_free_skb(struct mt76_phy *phy) { struct mt76_testmode_data *td = &phy->test; - struct sk_buff *skb = td->tx_skb; - - if (!skb) - return; - - if (skb_has_frag_list(skb)) { - kfree_skb_list(skb_shinfo(skb)->frag_list); - skb_shinfo(skb)->frag_list = NULL; - } - dev_kfree_skb(skb); + dev_kfree_skb(td->tx_skb); td->tx_skb = NULL; } |