[IPV6]: Remove unused code in ndisc_send_redirect().
authorRami Rosen <ramirose@gmail.com>
Mon, 24 Mar 2008 04:58:44 +0000 (21:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Mar 2008 04:58:44 +0000 (21:58 -0700)
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>
net/ipv6/ndisc.c

index 24e76ed988843380f5754ab3d764e06c0d1d8afa..e7d8e74704c16d1c9d70d7b5b65caf4ff028cca9 100644 (file)
@@ -1407,7 +1407,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
        u8 *opt;
        int rd_len;
        int err;
-       int hlen;
        u8 ha_buf[MAX_ADDR_LEN], *ha = NULL;
 
        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,
                return;
        }
 
-       hlen = 0;
-
        skb_reserve(buff, LL_RESERVED_SPACE(dev));
        ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr,
                   IPPROTO_ICMPV6, len);