diff options
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 9 |
1 files changed, 3 insertions, 6 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; |