Message ID | b90644567e758b5702e37e34e31f2007e3bd2c87.1586290996.git.sean.wang@mediatek.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Felix Fietkau |
Headers | show |
Series | mt76: replace consume_skb with dev_kfree_skb | expand |
On 4/7/2020 10:25 PM, sean.wang@mediatek.com wrote: > From: Sean Wang <sean.wang@mediatek.com> > > consume_skb is identical to dev_kfree_skb, so that replace consume_skb with > dev_kfree_skb just to make consistent in whole mt76 driver. Given that dev_kfree_skb is a define that maps it to consume_skb I would say the use of consume_skb() is preferred. So maybe better to get consistency in the driver by replacing dev_kfree_skb with consume_skb. Regards, Arend
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c index a30bb536fc8a..28567e2e4a65 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c @@ -111,7 +111,7 @@ __mt76x02u_mcu_send_msg(struct mt76_dev *dev, struct sk_buff *skb, if (wait_resp) ret = mt76x02u_mcu_wait_resp(dev, seq); - consume_skb(skb); + dev_kfree_skb(skb); return ret; }