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>
This commit is contained in:
parent
4f41b09f86
commit
82d601dc07
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue