Commit 9bf9055e authored by David S. Miller's avatar David S. Miller

decnet: Fix set-but-unused variable.

"next" in dn_rebuild_zone() is set but not actually used,
kill it off.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21f825e6
...@@ -124,11 +124,10 @@ static inline void dn_rebuild_zone(struct dn_zone *dz, ...@@ -124,11 +124,10 @@ static inline void dn_rebuild_zone(struct dn_zone *dz,
int old_divisor) int old_divisor)
{ {
int i; int i;
struct dn_fib_node *f, **fp, *next; struct dn_fib_node *f, **fp;
for(i = 0; i < old_divisor; i++) { for(i = 0; i < old_divisor; i++) {
for(f = old_ht[i]; f; f = f->fn_next) { for(f = old_ht[i]; f; f = f->fn_next) {
next = f->fn_next;
for(fp = dn_chain_p(f->fn_key, dz); for(fp = dn_chain_p(f->fn_key, dz);
*fp && dn_key_leq((*fp)->fn_key, f->fn_key); *fp && dn_key_leq((*fp)->fn_key, f->fn_key);
fp = &(*fp)->fn_next) fp = &(*fp)->fn_next)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment