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

Commit b13a8a99 authored by françois romieu's avatar françois romieu Committed by David S. Miller
Browse files

bna: remove open-coded skb_cow_head.



Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Cc: Rasesh Mody <rmody@brocade.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bb9689e6
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -2496,13 +2496,11 @@ bnad_tso_prepare(struct bnad *bnad, struct sk_buff *skb)
{
	int err;

	if (skb_header_cloned(skb)) {
		err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC);
		if (err) {
	err = skb_cow_head(skb, 0);
	if (err < 0) {
		BNAD_UPDATE_CTR(bnad, tso_err);
		return err;
	}
	}

	/*
	 * For TSO, the TCP checksum field is seeded with pseudo-header sum