]> err.no Git - linux-2.6/commit
[IPV6] net/ipv6/ndisc.c: remove unused variable
authorJulia Lawall <julia@diku.dk>
Sun, 23 Mar 2008 01:04:16 +0000 (18:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Mar 2008 01:04:16 +0000 (18:04 -0700)
commit421f099bc555c5f1516fdf5060de1d6bb5f51002
treee6175f1bd48428f9159eb91a81ba1cbb0418026d
parent6440cc9e0f48ade57af7be28008cbfa6a991f287
[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>
net/ipv6/ndisc.c