Skip to content

Commit

Permalink
decnet: Fix set-but-unused variable.
Browse files Browse the repository at this point in the history
"next" in dn_rebuild_zone() is set but not actually used,
kill it off.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 17, 2011
1 parent 21f825e commit 9bf9055
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/decnet/dn_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,10 @@ static inline void dn_rebuild_zone(struct dn_zone *dz,
int old_divisor)
{
int i;
struct dn_fib_node *f, **fp, *next;
struct dn_fib_node *f, **fp;

for(i = 0; i < old_divisor; i++) {
for(f = old_ht[i]; f; f = f->fn_next) {
next = f->fn_next;
for(fp = dn_chain_p(f->fn_key, dz);
*fp && dn_key_leq((*fp)->fn_key, f->fn_key);
fp = &(*fp)->fn_next)
Expand Down

0 comments on commit 9bf9055

Please sign in to comment.