mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
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 <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
3945264468
commit
bdcc57a116
+1
-10
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user