提交 ceffc4ac 编写于 作者: J Joe Perches 提交者: David S. Miller

xilinx: Convert uses of __constant_<foo> to <foo>

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: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b779d0af
...@@ -771,7 +771,7 @@ static void ll_temac_recv(struct net_device *ndev) ...@@ -771,7 +771,7 @@ static void ll_temac_recv(struct net_device *ndev)
/* if we're doing rx csum offload, set it up */ /* if we're doing rx csum offload, set it up */
if (((lp->temac_features & TEMAC_FEATURE_RX_CSUM) != 0) && if (((lp->temac_features & TEMAC_FEATURE_RX_CSUM) != 0) &&
(skb->protocol == __constant_htons(ETH_P_IP)) && (skb->protocol == htons(ETH_P_IP)) &&
(skb->len > 64)) { (skb->len > 64)) {
skb->csum = cur_p->app3 & 0xFFFF; skb->csum = cur_p->app3 & 0xFFFF;
......
...@@ -756,7 +756,7 @@ static void axienet_recv(struct net_device *ndev) ...@@ -756,7 +756,7 @@ static void axienet_recv(struct net_device *ndev)
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
} }
} else if ((lp->features & XAE_FEATURE_PARTIAL_RX_CSUM) != 0 && } 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->len > 64) {
skb->csum = be32_to_cpu(cur_p->app3 & 0xFFFF); skb->csum = be32_to_cpu(cur_p->app3 & 0xFFFF);
skb->ip_summed = CHECKSUM_COMPLETE; skb->ip_summed = CHECKSUM_COMPLETE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册