提交 16910b98 编写于 作者: P Pavel Emelyanov 提交者: David S. Miller

[IPV6]: Fix return type for snmp6_free_dev()

This call is essentially void.
Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 47e958ea
...@@ -283,12 +283,11 @@ static int snmp6_alloc_dev(struct inet6_dev *idev) ...@@ -283,12 +283,11 @@ static int snmp6_alloc_dev(struct inet6_dev *idev)
return err; return err;
} }
static int snmp6_free_dev(struct inet6_dev *idev) static void snmp6_free_dev(struct inet6_dev *idev)
{ {
snmp_mib_free((void **)idev->stats.icmpv6msg); snmp_mib_free((void **)idev->stats.icmpv6msg);
snmp_mib_free((void **)idev->stats.icmpv6); snmp_mib_free((void **)idev->stats.icmpv6);
snmp_mib_free((void **)idev->stats.ipv6); snmp_mib_free((void **)idev->stats.ipv6);
return 0;
} }
/* Nobody refers to this device, we may destroy it. */ /* Nobody refers to this device, we may destroy it. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册