Skip to content

Commit a52a8a4

Browse files
Zhang Shengjudavem330
authored andcommitted
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: Zhang Shengju <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6902910 commit a52a8a4

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/intel/iwlwifi/pcie

1 file changed

+1
-1
lines changed

drivers/net/wireless/intel/iwlwifi/pcie/tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,7 @@ static int iwl_fill_data_tbs_amsdu(struct iwl_trans *trans, struct sk_buff *skb,
21962196

21972197
memcpy(skb_put(csum_skb, tcp_hdrlen(skb)),
21982198
tcph, tcp_hdrlen(skb));
2199-
skb_set_transport_header(csum_skb, 0);
2199+
skb_reset_transport_header(csum_skb);
22002200
csum_skb->csum_start =
22012201
(unsigned char *)tcp_hdr(csum_skb) -
22022202
csum_skb->head;

0 commit comments

Comments
 (0)