From fe71257ebd81f53f32a6c6332439c700b2d11fc9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 22 Dec 2010 12:06:54 +0000 Subject: [PATCH] Remove dead assignment of lv_total and lv_capasity_total Variables 'lv_total' and 'lv_capasity_total' are unused. --- tools/lvscan.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/lvscan.c b/tools/lvscan.c index 638d2f57a..1f91d39c9 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; } -- 2.43.5