提交 438263ac 编写于 作者: D David S. Miller

aoe: Remove superfluous clearing of skb fields in new_skb().

This code uses alloc_skb() which clears them out for us.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5615968a
......@@ -34,13 +34,6 @@ new_skb(ulong len)
skb_reset_mac_header(skb);
skb_reset_network_header(skb);
skb->protocol = __constant_htons(ETH_P_AOE);
skb->priority = 0;
skb->next = skb->prev = NULL;
/* tell the network layer not to perform IP checksums
* or to get the NIC to do it
*/
skb->ip_summed = CHECKSUM_NONE;
}
return skb;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册