diff options
author | Joe Perches <joe@perches.com> | 2012-11-25 04:35:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-25 16:34:17 -0500 |
commit | 53d6841d225b93c20d561878637c3cd307c11648 (patch) | |
tree | 72db3b0102af8c73005784ec4c566f5cc0502d09 /net/ipv6 | |
parent | 5e1859fbcc3ccdd56d528df91d7b6f70e73d6b82 (diff) |
ipv4/ipmr and ipv6/ip6mr: Convert int mroute_do_<foo> to bool
Save a few bytes per table by convert mroute_do_assert and
mroute_do_pim from int to bool.
Remove !! as the compiler does that when assigning int to bool.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6mr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index d7330f8ea6d4..79bb49061ef6 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -66,8 +66,8 @@ struct mr6_table { | |||
66 | struct mif_device vif6_table[MAXMIFS]; | 66 | struct mif_device vif6_table[MAXMIFS]; |
67 | int maxvif; | 67 | int maxvif; |
68 | atomic_t cache_resolve_queue_len; | 68 | atomic_t cache_resolve_queue_len; |
69 | int mroute_do_assert; | 69 | bool mroute_do_assert; |
70 | int mroute_do_pim; | 70 | bool mroute_do_pim; |
71 | #ifdef CONFIG_IPV6_PIMSM_V2 | 71 | #ifdef CONFIG_IPV6_PIMSM_V2 |
72 | int mroute_reg_vif_num; | 72 | int mroute_reg_vif_num; |
73 | #endif | 73 | #endif |
@@ -1648,7 +1648,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns | |||
1648 | int v; | 1648 | int v; |
1649 | if (get_user(v, (int __user *)optval)) | 1649 | if (get_user(v, (int __user *)optval)) |
1650 | return -EFAULT; | 1650 | return -EFAULT; |
1651 | mrt->mroute_do_assert = !!v; | 1651 | mrt->mroute_do_assert = v; |
1652 | return 0; | 1652 | return 0; |
1653 | } | 1653 | } |
1654 | 1654 | ||