diff options
author | Denis V. Lunev <den@openvz.org> | 2008-07-19 03:28:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-19 03:28:58 -0400 |
commit | 725a8ff04a5dc473cd9d8eb7817ca96fc36c7789 (patch) | |
tree | bd632ddb3f0998217240b1e244307937020aa5bd /net/ipv6/ipv6_sockglue.c | |
parent | bdccc4ca13a639d759206c5b21ed73f8a813eaba (diff) |
ipv6: remove unused parameter from ip6_ra_control
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index 030c0c956f9d..8c6ea07f4d56 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c | |||
@@ -59,7 +59,7 @@ DEFINE_SNMP_STAT(struct ipstats_mib, ipv6_statistics) __read_mostly; | |||
59 | struct ip6_ra_chain *ip6_ra_chain; | 59 | struct ip6_ra_chain *ip6_ra_chain; |
60 | DEFINE_RWLOCK(ip6_ra_lock); | 60 | DEFINE_RWLOCK(ip6_ra_lock); |
61 | 61 | ||
62 | int ip6_ra_control(struct sock *sk, int sel, void (*destructor)(struct sock *)) | 62 | int ip6_ra_control(struct sock *sk, int sel) |
63 | { | 63 | { |
64 | struct ip6_ra_chain *ra, *new_ra, **rap; | 64 | struct ip6_ra_chain *ra, *new_ra, **rap; |
65 | 65 | ||
@@ -81,8 +81,6 @@ int ip6_ra_control(struct sock *sk, int sel, void (*destructor)(struct sock *)) | |||
81 | *rap = ra->next; | 81 | *rap = ra->next; |
82 | write_unlock_bh(&ip6_ra_lock); | 82 | write_unlock_bh(&ip6_ra_lock); |
83 | 83 | ||
84 | if (ra->destructor) | ||
85 | ra->destructor(sk); | ||
86 | sock_put(sk); | 84 | sock_put(sk); |
87 | kfree(ra); | 85 | kfree(ra); |
88 | return 0; | 86 | return 0; |
@@ -94,7 +92,6 @@ int ip6_ra_control(struct sock *sk, int sel, void (*destructor)(struct sock *)) | |||
94 | } | 92 | } |
95 | new_ra->sk = sk; | 93 | new_ra->sk = sk; |
96 | new_ra->sel = sel; | 94 | new_ra->sel = sel; |
97 | new_ra->destructor = destructor; | ||
98 | new_ra->next = ra; | 95 | new_ra->next = ra; |
99 | *rap = new_ra; | 96 | *rap = new_ra; |
100 | sock_hold(sk); | 97 | sock_hold(sk); |
@@ -632,7 +629,7 @@ done: | |||
632 | case IPV6_ROUTER_ALERT: | 629 | case IPV6_ROUTER_ALERT: |
633 | if (optlen < sizeof(int)) | 630 | if (optlen < sizeof(int)) |
634 | goto e_inval; | 631 | goto e_inval; |
635 | retv = ip6_ra_control(sk, val, NULL); | 632 | retv = ip6_ra_control(sk, val); |
636 | break; | 633 | break; |
637 | case IPV6_MTU_DISCOVER: | 634 | case IPV6_MTU_DISCOVER: |
638 | if (optlen < sizeof(int)) | 635 | if (optlen < sizeof(int)) |