aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-12 10:04:17 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-12 15:28:06 -0400
commit2b8837aeaaa0bb6b4b3be1b3afd1cc088f68a362 (patch)
treed09be70a5204356d86bdefc74a1f1e67b545cacf /net/core/dev.c
parent8021q: Convert uses of __constant_<foo> to <foo> (diff)
downloadlinux-dev-2b8837aeaaa0bb6b4b3be1b3afd1cc088f68a362.tar.xz
linux-dev-2b8837aeaaa0bb6b4b3be1b3afd1cc088f68a362.zip
net: 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: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index b1b0c8d4d7df..587f9fb85d73 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3495,11 +3495,11 @@ EXPORT_SYMBOL_GPL(netdev_rx_handler_unregister);
static bool skb_pfmemalloc_protocol(struct sk_buff *skb)
{
switch (skb->protocol) {
- case __constant_htons(ETH_P_ARP):
- case __constant_htons(ETH_P_IP):
- case __constant_htons(ETH_P_IPV6):
- case __constant_htons(ETH_P_8021Q):
- case __constant_htons(ETH_P_8021AD):
+ case htons(ETH_P_ARP):
+ case htons(ETH_P_IP):
+ case htons(ETH_P_IPV6):
+ case htons(ETH_P_8021Q):
+ case htons(ETH_P_8021AD):
return true;
default:
return false;