aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 52d10d213217..edf06ca34749 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -283,12 +283,11 @@ err_ip:
283 return err; 283 return err;
284} 284}
285 285
286static int snmp6_free_dev(struct inet6_dev *idev) 286static void snmp6_free_dev(struct inet6_dev *idev)
287{ 287{
288 snmp_mib_free((void **)idev->stats.icmpv6msg); 288 snmp_mib_free((void **)idev->stats.icmpv6msg);
289 snmp_mib_free((void **)idev->stats.icmpv6); 289 snmp_mib_free((void **)idev->stats.icmpv6);
290 snmp_mib_free((void **)idev->stats.ipv6); 290 snmp_mib_free((void **)idev->stats.ipv6);
291 return 0;
292} 291}
293 292
294/* Nobody refers to this device, we may destroy it. */ 293/* Nobody refers to this device, we may destroy it. */