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/ipv4 | |
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/ipv4')
-rw-r--r-- | net/ipv4/ipmr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 0394a8e6d978..fc09ef936636 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -83,8 +83,8 @@ struct mr_table { | |||
83 | struct vif_device vif_table[MAXVIFS]; | 83 | struct vif_device vif_table[MAXVIFS]; |
84 | int maxvif; | 84 | int maxvif; |
85 | atomic_t cache_resolve_queue_len; | 85 | atomic_t cache_resolve_queue_len; |
86 | int mroute_do_assert; | 86 | bool mroute_do_assert; |
87 | int mroute_do_pim; | 87 | bool mroute_do_pim; |
88 | #if defined(CONFIG_IP_PIMSM_V1) || defined(CONFIG_IP_PIMSM_V2) | 88 | #if defined(CONFIG_IP_PIMSM_V1) || defined(CONFIG_IP_PIMSM_V2) |
89 | int mroute_reg_vif_num; | 89 | int mroute_reg_vif_num; |
90 | #endif | 90 | #endif |
@@ -1289,7 +1289,7 @@ int ip_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, unsi | |||
1289 | return -EINVAL; | 1289 | return -EINVAL; |
1290 | if (get_user(v, (int __user *)optval)) | 1290 | if (get_user(v, (int __user *)optval)) |
1291 | return -EFAULT; | 1291 | return -EFAULT; |
1292 | mrt->mroute_do_assert = !!v; | 1292 | mrt->mroute_do_assert = v; |
1293 | return 0; | 1293 | return 0; |
1294 | } | 1294 | } |
1295 | #ifdef CONFIG_IP_PIMSM | 1295 | #ifdef CONFIG_IP_PIMSM |