提交 606f8e34 编写于 作者: H Hauke Mehrtens 提交者: Felix Fietkau

mt76: use skb_pad() instead of __skb_pad()

mt76 uses __skb_pad() with free_on_error set to true, this is the same
as calling skb_pad().
This patch does not change any functionality, but it makes it easier to
backport this driver in backports, because skb_pad() is also available
in older kernel versions.

Fixes: b40b15e1 ("mt76: add usb support to mt76 layer")
Signed-off-by: NHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: NFelix Fietkau <nbd@nbd.name>
上级 481bb043
......@@ -43,7 +43,7 @@ int mt76x02u_skb_dma_info(struct sk_buff *skb, int port, u32 flags)
}
if (unlikely(pad)) {
if (__skb_pad(last, pad, true))
if (skb_pad(last, pad))
return -ENOMEM;
__skb_put(last, pad);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册