From: Jun'ichi Nomura Date: Fri, 8 Feb 2008 02:10:04 +0000 (+0000) Subject: dm: table remove unused total X-Git-Tag: v2.6.25-rc1~280^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=82d601dc076deb5f348cc3a70f57248bc976ae0c;p=linux-2.6-omap-h63xx.git dm: table remove unused total "total = 0" does nothing. Signed-off-by: Jun'ichi Nomura Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index d2eb3c59368..444a4fb6432 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) 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);