Skip to content

Commit

Permalink
[IPV6]: Fix return type for snmp6_free_dev()
Browse files Browse the repository at this point in the history
This call is essentially void.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Oct 18, 2007
1 parent 47e958e commit 16910b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,11 @@ static int snmp6_alloc_dev(struct inet6_dev *idev)
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.icmpv6);
snmp_mib_free((void **)idev->stats.ipv6);
return 0;
}

/* Nobody refers to this device, we may destroy it. */
Expand Down

0 comments on commit 16910b9

Please sign in to comment.