diff options
author | Jun'ichi Nomura <j-nomura@ce.jp.nec.com> | 2008-02-07 21:10:04 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2008-02-07 21:10:04 -0500 |
commit | 82d601dc076deb5f348cc3a70f57248bc976ae0c (patch) | |
tree | 9047dc31a5fde553b64b96bc5b426065b77772c2 | |
parent | 4f41b09f86e0e3b48194b2ad0356391bf6d47e40 (diff) |
dm: table remove unused total
"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>
-rw-r--r-- | drivers/md/dm-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index d2eb3c593682..444a4fb64328 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -804,7 +804,7 @@ static int setup_indexes(struct dm_table *t) | |||
804 | return -ENOMEM; | 804 | return -ENOMEM; |
805 | 805 | ||
806 | /* set up internal nodes, bottom-up */ | 806 | /* set up internal nodes, bottom-up */ |
807 | for (i = t->depth - 2, total = 0; i >= 0; i--) { | 807 | for (i = t->depth - 2; i >= 0; i--) { |
808 | t->index[i] = indexes; | 808 | t->index[i] = indexes; |
809 | indexes += (KEYS_PER_NODE * t->counts[i]); | 809 | indexes += (KEYS_PER_NODE * t->counts[i]); |
810 | setup_btree_index(i, t); | 810 | setup_btree_index(i, t); |