Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74b6939d authored by Alexander Duyck's avatar Alexander Duyck Committed by David S. Miller
Browse files

emulex: Use skb_put_padto instead of skb_padto() and skb->len assignment

parent a94d9e22
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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)) {