aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRami Rosen <ramirose@gmail.com>2008-03-24 00:58:44 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-24 00:58:44 -0400
commit061964fb988ca51087948975da66ff523b3a5852 (patch)
tree357a6143ec2cc2eca609da6759858c5cbd7b703e /net
parentd5706ef30bc25fe100bc3c3e46e46582a3eaf6b2 (diff)
[IPV6]: Remove unused code in ndisc_send_redirect().
This patches removes unused code in ndisc_send_redirect() method in net/ipv6/ndisc.c. Signed-off-by: Rami Rosen <ramirose@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ndisc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 24e76ed98884..e7d8e74704c1 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -1407,7 +1407,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
1407 u8 *opt; 1407 u8 *opt;
1408 int rd_len; 1408 int rd_len;
1409 int err; 1409 int err;
1410 int hlen;
1411 u8 ha_buf[MAX_ADDR_LEN], *ha = NULL; 1410 u8 ha_buf[MAX_ADDR_LEN], *ha = NULL;
1412 1411
1413 if (ipv6_get_lladdr(dev, &saddr_buf, IFA_F_TENTATIVE)) { 1412 if (ipv6_get_lladdr(dev, &saddr_buf, IFA_F_TENTATIVE)) {
@@ -1476,8 +1475,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
1476 return; 1475 return;
1477 } 1476 }
1478 1477
1479 hlen = 0;
1480
1481 skb_reserve(buff, LL_RESERVED_SPACE(dev)); 1478 skb_reserve(buff, LL_RESERVED_SPACE(dev));
1482 ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr, 1479 ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr,
1483 IPPROTO_ICMPV6, len); 1480 IPPROTO_ICMPV6, len);