[lvm-devel] [PATCH 02/23] Remove dead assignment

Zdenek Kabelac zkabelac at redhat.com
Tue Dec 21 15:41:34 UTC 2010


Variables 'lv_total' and 'lv_capasity_total' are unused.

Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
 tools/lvscan.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/tools/lvscan.c b/tools/lvscan.c
index 638d2f5..1f91d39 100644
--- a/tools/lvscan.c
+++ b/tools/lvscan.c
@@ -19,8 +19,6 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv,
 			 void *handle __attribute__((unused)))
 {
 	struct lvinfo info;
-	int lv_total = 0;
-	uint64_t lv_capacity_total = 0;
 	int inkernel, snap_active = 1;
 	struct lv_segment *snap_seg = NULL;
 	percent_t snap_percent;     /* fused, fsize; */
@@ -66,10 +64,6 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv,
 		  display_size(cmd, lv->size),
 		  get_alloc_string(lv->alloc));
 
-	lv_total++;
-
-	lv_capacity_total += lv->size;
-
 	return ECMD_PROCESSED;
 }
 
-- 
1.7.3.4




More information about the lvm-devel mailing list