Commit 724800d6 authored by YOSHIFUJI Hideaki's avatar YOSHIFUJI Hideaki Committed by David S. Miller

[NET] CORE: Use htons() where appropriate.

Signed-off-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent aca3192c
...@@ -443,7 +443,7 @@ int __netpoll_rx(struct sk_buff *skb) ...@@ -443,7 +443,7 @@ int __netpoll_rx(struct sk_buff *skb)
goto out; goto out;
/* check if netpoll clients need ARP */ /* check if netpoll clients need ARP */
if (skb->protocol == __constant_htons(ETH_P_ARP) && if (skb->protocol == htons(ETH_P_ARP) &&
atomic_read(&trapped)) { atomic_read(&trapped)) {
skb_queue_tail(&npi->arp_tx, skb); skb_queue_tail(&npi->arp_tx, skb);
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment