From: Alexander Duyck Date: Wed, 3 Dec 2014 16:17:46 +0000 (-0800) Subject: emulex: Use skb_put_padto instead of skb_padto() and skb->len assignment X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74b6939de3aea269627537e5178c973c3f123690;p=openwrt%2Fstaging%2Fblogic.git emulex: Use skb_put_padto instead of skb_padto() and skb->len assignment Signed-off-by: Alexander Duyck Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index e0ab7673afe7..9461ad8d837b 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -1017,9 +1017,8 @@ static struct sk_buff *be_xmit_workarounds(struct be_adapter *adapter, * to pad short packets (<= 32 bytes) to a 36-byte length. */ if (unlikely(!BEx_chip(adapter) && skb->len <= 32)) { - if (skb_padto(skb, 36)) + if (skb_put_padto(skb, 36)) return NULL; - skb->len = 36; } if (BEx_chip(adapter) || lancer_chip(adapter)) {