diff options
author | Julia Lawall <julia@diku.dk> | 2008-03-22 21:04:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-22 21:04:16 -0400 |
commit | 421f099bc555c5f1516fdf5060de1d6bb5f51002 (patch) | |
tree | e6175f1bd48428f9159eb91a81ba1cbb0418026d /net/ipv6 | |
parent | 6440cc9e0f48ade57af7be28008cbfa6a991f287 (diff) |
[IPV6] net/ipv6/ndisc.c: remove unused variable
The variable hlen is initialized but never used otherwise.
The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@@
type T;
identifier i;
constant C;
@@
(
extern T i;
|
- T i;
<+... when != i
- i = C;
...+>
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 0d33a7d32125..51557c27a0cd 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1420,7 +1420,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, | |||
1420 | u8 *opt; | 1420 | u8 *opt; |
1421 | int rd_len; | 1421 | int rd_len; |
1422 | int err; | 1422 | int err; |
1423 | int hlen; | ||
1424 | u8 ha_buf[MAX_ADDR_LEN], *ha = NULL; | 1423 | u8 ha_buf[MAX_ADDR_LEN], *ha = NULL; |
1425 | 1424 | ||
1426 | dev = skb->dev; | 1425 | dev = skb->dev; |
@@ -1491,7 +1490,6 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, | |||
1491 | return; | 1490 | return; |
1492 | } | 1491 | } |
1493 | 1492 | ||
1494 | hlen = 0; | ||
1495 | 1493 | ||
1496 | skb_reserve(buff, LL_RESERVED_SPACE(dev)); | 1494 | skb_reserve(buff, LL_RESERVED_SPACE(dev)); |
1497 | ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr, | 1495 | ip6_nd_hdr(sk, buff, dev, &saddr_buf, &ipv6_hdr(skb)->saddr, |