Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Zhang Shengju and committed by
David S. Miller
a52a8a4d 69029109

+1 -1
+1 -1
drivers/net/wireless/intel/iwlwifi/pcie/tx.c
··· 2196 2196 2197 2197 memcpy(skb_put(csum_skb, tcp_hdrlen(skb)), 2198 2198 tcph, tcp_hdrlen(skb)); 2199 - skb_set_transport_header(csum_skb, 0); 2199 + skb_reset_transport_header(csum_skb); 2200 2200 csum_skb->csum_start = 2201 2201 (unsigned char *)tcp_hdr(csum_skb) - 2202 2202 csum_skb->head;