Skip to content

Commit

Permalink
dm: table remove unused total
Browse files Browse the repository at this point in the history
"total = 0" does nothing.

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
  • Loading branch information
Jun'ichi Nomura authored and Alasdair G Kergon committed Feb 8, 2008
1 parent 4f41b09 commit 82d601d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static int setup_indexes(struct dm_table *t)
return -ENOMEM;

/* set up internal nodes, bottom-up */
for (i = t->depth - 2, total = 0; i >= 0; i--) {
for (i = t->depth - 2; i >= 0; i--) {
t->index[i] = indexes;
indexes += (KEYS_PER_NODE * t->counts[i]);
setup_btree_index(i, t);
Expand Down

0 comments on commit 82d601d

Please sign in to comment.