diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 03:14:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 03:14:09 -0400 |
commit | 9bf9055eb716f85372c41b3fbc51f90bc7653740 (patch) | |
tree | d496b9839063a2c334cf3a39629767fdb46a50f0 /net/decnet | |
parent | 21f825e61878db94c7093c8407602fc89fc38ad9 (diff) |
decnet: Fix set-but-unused variable.
"next" in dn_rebuild_zone() is set but not actually used,
kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_table.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index 99d8d3a40998..d8ea583076cf 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
@@ -124,11 +124,10 @@ static inline void dn_rebuild_zone(struct dn_zone *dz, | |||
124 | int old_divisor) | 124 | int old_divisor) |
125 | { | 125 | { |
126 | int i; | 126 | int i; |
127 | struct dn_fib_node *f, **fp, *next; | 127 | struct dn_fib_node *f, **fp; |
128 | 128 | ||
129 | for(i = 0; i < old_divisor; i++) { | 129 | for(i = 0; i < old_divisor; i++) { |
130 | for(f = old_ht[i]; f; f = f->fn_next) { | 130 | for(f = old_ht[i]; f; f = f->fn_next) { |
131 | next = f->fn_next; | ||
132 | for(fp = dn_chain_p(f->fn_key, dz); | 131 | for(fp = dn_chain_p(f->fn_key, dz); |
133 | *fp && dn_key_leq((*fp)->fn_key, f->fn_key); | 132 | *fp && dn_key_leq((*fp)->fn_key, f->fn_key); |
134 | fp = &(*fp)->fn_next) | 133 | fp = &(*fp)->fn_next) |