[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>
This commit is contained in:
committed by
David S. Miller
parent
971b893e79
commit
c69bce20dd
@@ -714,20 +714,19 @@ EXPORT_SYMBOL_GPL(ipv6_opt_accepted);
|
||||
|
||||
static int __init init_ipv6_mibs(void)
|
||||
{
|
||||
if (snmp_mib_init((void **)ipv6_statistics, sizeof (struct ipstats_mib),
|
||||
__alignof__(struct ipstats_mib)) < 0)
|
||||
if (snmp_mib_init((void **)ipv6_statistics,
|
||||
sizeof(struct ipstats_mib)) < 0)
|
||||
goto err_ip_mib;
|
||||
if (snmp_mib_init((void **)icmpv6_statistics, sizeof (struct icmpv6_mib),
|
||||
__alignof__(struct icmpv6_mib)) < 0)
|
||||
if (snmp_mib_init((void **)icmpv6_statistics,
|
||||
sizeof(struct icmpv6_mib)) < 0)
|
||||
goto err_icmp_mib;
|
||||
if (snmp_mib_init((void **)icmpv6msg_statistics,
|
||||
sizeof (struct icmpv6msg_mib), __alignof__(struct icmpv6_mib)) < 0)
|
||||
sizeof(struct icmpv6msg_mib)) < 0)
|
||||
goto err_icmpmsg_mib;
|
||||
if (snmp_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib),
|
||||
__alignof__(struct udp_mib)) < 0)
|
||||
if (snmp_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib)) < 0)
|
||||
goto err_udp_mib;
|
||||
if (snmp_mib_init((void **)udplite_stats_in6, sizeof (struct udp_mib),
|
||||
__alignof__(struct udp_mib)) < 0)
|
||||
if (snmp_mib_init((void **)udplite_stats_in6,
|
||||
sizeof (struct udp_mib)) < 0)
|
||||
goto err_udplite_mib;
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user