Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82d601dc authored by Jun'ichi Nomura's avatar Jun'ichi Nomura Committed by Alasdair G Kergon
Browse files

dm: table remove unused total



"total = 0" does nothing.

Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 4f41b09f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -804,7 +804,7 @@ static int setup_indexes(struct dm_table *t)
		return -ENOMEM;
		return -ENOMEM;


	/* set up internal nodes, bottom-up */
	/* 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;
		t->index[i] = indexes;
		indexes += (KEYS_PER_NODE * t->counts[i]);
		indexes += (KEYS_PER_NODE * t->counts[i]);
		setup_btree_index(i, t);
		setup_btree_index(i, t);