xilinx: Convert uses of __constant_<foo> to <foo>
authorJoe Perches <joe@perches.com>
Wed, 12 Mar 2014 17:22:36 +0000 (10:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Mar 2014 19:28:06 +0000 (15:28 -0400)
The use of __constant_<foo> has been unnecessary for quite awhile now.

Make these uses consistent with the rest of the kernel.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac_main.c
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index a4347508031ce4cff516c8d5dce32a4ba9e2efa8..fa193c4688da78719257ac982af8be1f81b270c1 100644 (file)
@@ -771,8 +771,8 @@ static void ll_temac_recv(struct net_device *ndev)
 
                /* if we're doing rx csum offload, set it up */
                if (((lp->temac_features & TEMAC_FEATURE_RX_CSUM) != 0) &&
-                       (skb->protocol == __constant_htons(ETH_P_IP)) &&
-                       (skb->len > 64)) {
+                   (skb->protocol == htons(ETH_P_IP)) &&
+                   (skb->len > 64)) {
 
                        skb->csum = cur_p->app3 & 0xFFFF;
                        skb->ip_summed = CHECKSUM_COMPLETE;
index 4bfdf8c7ada033cf964f1da66daba0137b499e6f..7b0a735562645cf042cfb312ace5018180d94559 100644 (file)
@@ -756,7 +756,7 @@ static void axienet_recv(struct net_device *ndev)
                                skb->ip_summed = CHECKSUM_UNNECESSARY;
                        }
                } else if ((lp->features & XAE_FEATURE_PARTIAL_RX_CSUM) != 0 &&
-                          skb->protocol == __constant_htons(ETH_P_IP) &&
+                          skb->protocol == htons(ETH_P_IP) &&
                           skb->len > 64) {
                        skb->csum = be32_to_cpu(cur_p->app3 & 0xFFFF);
                        skb->ip_summed = CHECKSUM_COMPLETE;