aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2009-02-01 03:45:17 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-01 03:45:17 -0500
commit09640e6365c679b5642b1c41b6d7078f51689ddf (patch)
treea2b80c153bd23fe59db8c6994fda29923819fcea /drivers/net/niu.c
parentee437770c42088b9b653e8b3bf28a61fa647f84e (diff)
net: replace uses of __constant_{endian}
Base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 2346ca6bf5ba..c26325ded20e 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -6447,11 +6447,11 @@ static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr,
6447 6447
6448 ipv6 = ihl = 0; 6448 ipv6 = ihl = 0;
6449 switch (skb->protocol) { 6449 switch (skb->protocol) {
6450 case __constant_htons(ETH_P_IP): 6450 case cpu_to_be16(ETH_P_IP):
6451 ip_proto = ip_hdr(skb)->protocol; 6451 ip_proto = ip_hdr(skb)->protocol;
6452 ihl = ip_hdr(skb)->ihl; 6452 ihl = ip_hdr(skb)->ihl;
6453 break; 6453 break;
6454 case __constant_htons(ETH_P_IPV6): 6454 case cpu_to_be16(ETH_P_IPV6):
6455 ip_proto = ipv6_hdr(skb)->nexthdr; 6455 ip_proto = ipv6_hdr(skb)->nexthdr;
6456 ihl = (40 >> 2); 6456 ihl = (40 >> 2);
6457 ipv6 = 1; 6457 ipv6 = 1;