diff options
| author | Joe Perches <joe@perches.com> | 2014-03-12 13:04:15 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-03-12 15:28:06 -0400 |
| commit | f0e78826e47facd538b74e3ef13f352f2a7db004 (patch) | |
| tree | f4879daa1bbea6b86100cdccb7444f910736450b | |
| parent | b338ce270ed589f8a7b62e239632baa48f947b17 (diff) | |
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>
| -rw-r--r-- | net/8021q/vlan.h | 4 | ||||
| -rw-r--r-- | net/8021q/vlan_netlink.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index 5704ed9c3a23..9d010a09ab98 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h | |||
| @@ -38,9 +38,9 @@ struct vlan_info { | |||
| 38 | static inline unsigned int vlan_proto_idx(__be16 proto) | 38 | static inline unsigned int vlan_proto_idx(__be16 proto) |
| 39 | { | 39 | { |
| 40 | switch (proto) { | 40 | switch (proto) { |
| 41 | case __constant_htons(ETH_P_8021Q): | 41 | case htons(ETH_P_8021Q): |
| 42 | return VLAN_PROTO_8021Q; | 42 | return VLAN_PROTO_8021Q; |
| 43 | case __constant_htons(ETH_P_8021AD): | 43 | case htons(ETH_P_8021AD): |
| 44 | return VLAN_PROTO_8021AD; | 44 | return VLAN_PROTO_8021AD; |
| 45 | default: | 45 | default: |
| 46 | BUG(); | 46 | BUG(); |
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[]) | |||
| 56 | 56 | ||
| 57 | if (data[IFLA_VLAN_PROTOCOL]) { | 57 | if (data[IFLA_VLAN_PROTOCOL]) { |
| 58 | switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { | 58 | switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { |
| 59 | case __constant_htons(ETH_P_8021Q): | 59 | case htons(ETH_P_8021Q): |
| 60 | case __constant_htons(ETH_P_8021AD): | 60 | case htons(ETH_P_8021AD): |
| 61 | break; | 61 | break; |
| 62 | default: | 62 | default: |
| 63 | return -EPROTONOSUPPORT; | 63 | return -EPROTONOSUPPORT; |
