diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-01-24 01:31:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:57:02 -0500 |
commit | c69bce20dda7f79160856a338298d65a284ba303 (patch) | |
tree | 0a07716410f323aa716b0dfa3607070fa6d3fd8d /net/ipv6 | |
parent | 971b893e79db0f7dccfcea15dbdebca3ca64a84d (diff) |
[NET]: Remove unused "mibalign" argument for snmp_mib_init().
With fixes from Arnaldo Carvalho de Melo.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 9 | ||||
-rw-r--r-- | net/ipv6/af_inet6.c | 17 |
2 files changed, 11 insertions, 15 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 95cf3aa41c98..ba6f7925c178 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -256,16 +256,13 @@ static void addrconf_mod_timer(struct inet6_ifaddr *ifp, | |||
256 | static int snmp6_alloc_dev(struct inet6_dev *idev) | 256 | static int snmp6_alloc_dev(struct inet6_dev *idev) |
257 | { | 257 | { |
258 | if (snmp_mib_init((void **)idev->stats.ipv6, | 258 | if (snmp_mib_init((void **)idev->stats.ipv6, |
259 | sizeof(struct ipstats_mib), | 259 | sizeof(struct ipstats_mib)) < 0) |
260 | __alignof__(struct ipstats_mib)) < 0) | ||
261 | goto err_ip; | 260 | goto err_ip; |
262 | if (snmp_mib_init((void **)idev->stats.icmpv6, | 261 | if (snmp_mib_init((void **)idev->stats.icmpv6, |
263 | sizeof(struct icmpv6_mib), | 262 | sizeof(struct icmpv6_mib)) < 0) |
264 | __alignof__(struct icmpv6_mib)) < 0) | ||
265 | goto err_icmp; | 263 | goto err_icmp; |
266 | if (snmp_mib_init((void **)idev->stats.icmpv6msg, | 264 | if (snmp_mib_init((void **)idev->stats.icmpv6msg, |
267 | sizeof(struct icmpv6msg_mib), | 265 | sizeof(struct icmpv6msg_mib)) < 0) |
268 | __alignof__(struct icmpv6msg_mib)) < 0) | ||
269 | goto err_icmpmsg; | 266 | goto err_icmpmsg; |
270 | 267 | ||
271 | return 0; | 268 | return 0; |
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 5ab8ba7a5863..90d2f723fc46 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -714,20 +714,19 @@ EXPORT_SYMBOL_GPL(ipv6_opt_accepted); | |||
714 | 714 | ||
715 | static int __init init_ipv6_mibs(void) | 715 | static int __init init_ipv6_mibs(void) |
716 | { | 716 | { |
717 | if (snmp_mib_init((void **)ipv6_statistics, sizeof (struct ipstats_mib), | 717 | if (snmp_mib_init((void **)ipv6_statistics, |
718 | __alignof__(struct ipstats_mib)) < 0) | 718 | sizeof(struct ipstats_mib)) < 0) |
719 | goto err_ip_mib; | 719 | goto err_ip_mib; |
720 | if (snmp_mib_init((void **)icmpv6_statistics, sizeof (struct icmpv6_mib), | 720 | if (snmp_mib_init((void **)icmpv6_statistics, |
721 | __alignof__(struct icmpv6_mib)) < 0) | 721 | sizeof(struct icmpv6_mib)) < 0) |
722 | goto err_icmp_mib; | 722 | goto err_icmp_mib; |
723 | if (snmp_mib_init((void **)icmpv6msg_statistics, | 723 | if (snmp_mib_init((void **)icmpv6msg_statistics, |
724 | sizeof (struct icmpv6msg_mib), __alignof__(struct icmpv6_mib)) < 0) | 724 | sizeof(struct icmpv6msg_mib)) < 0) |
725 | goto err_icmpmsg_mib; | 725 | goto err_icmpmsg_mib; |
726 | if (snmp_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib), | 726 | if (snmp_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib)) < 0) |
727 | __alignof__(struct udp_mib)) < 0) | ||
728 | goto err_udp_mib; | 727 | goto err_udp_mib; |
729 | if (snmp_mib_init((void **)udplite_stats_in6, sizeof (struct udp_mib), | 728 | if (snmp_mib_init((void **)udplite_stats_in6, |
730 | __alignof__(struct udp_mib)) < 0) | 729 | sizeof (struct udp_mib)) < 0) |
731 | goto err_udplite_mib; | 730 | goto err_udplite_mib; |
732 | return 0; | 731 | return 0; |
733 | 732 | ||