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>
This commit is contained in:
committed by
David S. Miller
parent
ee437770c4
commit
09640e6365
@ -122,7 +122,7 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
|
||||
BUGLVL(D_SKB) arcnet_dump_skb(dev, skb, "rx");
|
||||
|
||||
skb->protocol = __constant_htons(ETH_P_ARCNET);
|
||||
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
|
||||
;
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
|
||||
BUGLVL(D_SKB) arcnet_dump_skb(dev, skb, "rx");
|
||||
|
||||
skb->protocol = __constant_htons(ETH_P_ARCNET);
|
||||
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
|
||||
;
|
||||
netif_rx(skb);
|
||||
}
|
||||
@ -282,7 +282,7 @@ static int ack_tx(struct net_device *dev, int acked)
|
||||
BUGMSG(D_PROTO, "Ackknowledge for cap packet %x.\n",
|
||||
*((int*)&ackpkt->soft.cap.cookie[0]));
|
||||
|
||||
ackskb->protocol = __constant_htons(ETH_P_ARCNET);
|
||||
ackskb->protocol = cpu_to_be16(ETH_P_ARCNET);
|
||||
|
||||
BUGLVL(D_SKB) arcnet_dump_skb(dev, ackskb, "ack_tx_recv");
|
||||
netif_rx(ackskb);
|
||||
|
Reference in New Issue
Block a user