From: YOSHIFUJI Hideaki Date: Mon, 26 Mar 2007 03:13:04 +0000 (-0700) Subject: [NET] CORE: Use htons() where appropriate. X-Git-Tag: v2.6.22-rc1~1128^2~390 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724800d61b8bc574a364707b6a6c6a6252e8cdb4;p=linux-2.6 [NET] CORE: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 4581ece48b..32a9f80b5f 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -443,7 +443,7 @@ int __netpoll_rx(struct sk_buff *skb) goto out; /* check if netpoll clients need ARP */ - if (skb->protocol == __constant_htons(ETH_P_ARP) && + if (skb->protocol == htons(ETH_P_ARP) && atomic_read(&trapped)) { skb_queue_tail(&npi->arp_tx, skb); return 1;