summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan_netlink.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-03-12 10:04:15 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-12 15:28:06 -0400
commitf0e78826e47facd538b74e3ef13f352f2a7db004 (patch)
treef4879daa1bbea6b86100cdccb7444f910736450b /net/8021q/vlan_netlink.c
parentb338ce270ed589f8a7b62e239632baa48f947b17 (diff)
downloadlinux-f0e78826e47facd538b74e3ef13f352f2a7db004.tar.gz
linux-f0e78826e47facd538b74e3ef13f352f2a7db004.tar.bz2
linux-f0e78826e47facd538b74e3ef13f352f2a7db004.zip
8021q: 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/8021q/vlan_netlink.c')
-rw-r--r--net/8021q/vlan_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c
index c7e634af8516..8ac8a5cc2143 100644
--- a/net/8021q/vlan_netlink.c
+++ b/net/8021q/vlan_netlink.c
@@ -56,8 +56,8 @@ static int vlan_validate(struct nlattr *tb[], struct nlattr *data[])
if (data[IFLA_VLAN_PROTOCOL]) {
switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) {
- case __constant_htons(ETH_P_8021Q):
- case __constant_htons(ETH_P_8021AD):
+ case htons(ETH_P_8021Q):
+ case htons(ETH_P_8021AD):
break;
default:
return -EPROTONOSUPPORT;