[PATCH] dm: removing unused "total = 0" from dm-table.c::set_indexes()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch removes "total = 0" from setup_indexes().

The variable 'total' is not used after that.
So it has no effects.
Perhaps a leftover of old editing.

Thanks,
-- 
Jun'ichi Nomura, NEC Corporation of America
"total = 0" does nothing.

Signed-off-by: Jun'ichi Nomura <j-nomura@xxxxxxxxxxxxx>

Index: linux-2.6.23.work/drivers/md/dm-table.c
===================================================================
--- linux-2.6.23.work.orig/drivers/md/dm-table.c
+++ linux-2.6.23.work/drivers/md/dm-table.c
@@ -792,7 +792,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);
--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux