From: Jun'ichi Nomura <[email-masked]>

"total = 0" does nothing.

Signed-off-by: Jun'ichi Nomura <[email-masked]>
Signed-off-by: Alasdair G Kergon <[email-masked]>

---
 drivers/md/dm-table.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.24/drivers/md/dm-table.c
===================================================================
--- linux-2.6.24.orig/drivers/md/dm-table.c	2008-02-07 13:48:11.000000000 +0000
+++ linux-2.6.24/drivers/md/dm-table.c	2008-02-07 13:48:14.000000000 +0000
@@ -804,7 +804,7 @@ static int setup_indexes(struct dm_table
 		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);