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

Commit a52a8a4d authored by Zhang Shengju's avatar Zhang Shengju Committed by David S. Miller
Browse files

iwlwifi: use reset to set transport header



Since offset is zero, it's not necessary to use set function. Reset
function is straightforward, and will remove the unnecessary add
operation in set function.

Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 69029109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2196,7 +2196,7 @@ static int iwl_fill_data_tbs_amsdu(struct iwl_trans *trans, struct sk_buff *skb,

			memcpy(skb_put(csum_skb, tcp_hdrlen(skb)),
			       tcph, tcp_hdrlen(skb));
			skb_set_transport_header(csum_skb, 0);
			skb_reset_transport_header(csum_skb);
			csum_skb->csum_start =
				(unsigned char *)tcp_hdr(csum_skb) -
						 csum_skb->head;