emulex: Use skb_put_padto instead of skb_padto() and skb->len assignment
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Wed, 3 Dec 2014 16:17:46 +0000 (08:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 01:47:42 +0000 (20:47 -0500)
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index e0ab767..9461ad8 100644 (file)
@@ -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)) {