diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-09-25 21:52:51 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-10-01 12:34:13 +0200 |
commit | 606f8e343349680b8f3123ee66be8fdc8cc43550 (patch) | |
tree | e348dfe5dc4288c51264098e9e756081b12ffb3b /drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c | |
parent | 481bb0432414f790066205fe77226b7d1877385d (diff) | |
download | linux-stable-606f8e343349680b8f3123ee66be8fdc8cc43550.tar.gz linux-stable-606f8e343349680b8f3123ee66be8fdc8cc43550.tar.bz2 linux-stable-606f8e343349680b8f3123ee66be8fdc8cc43550.zip |
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: b40b15e1521f ("mt76: add usb support to mt76 layer")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c index 235b1bc5a367..aecbe0c429ea 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c @@ -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); } |