Skip to content

Commit

Permalink
mt76: use skb_pad() instead of __skb_pad()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hauke authored and nbd168 committed Sep 26, 2018
1 parent 06b4b36 commit bddaa9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt76x02_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit bddaa9c

Please sign in to comment.