summaryrefslogtreecommitdiff
path: root/tools/lvscan.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-12-22 12:06:54 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-12-22 12:06:54 +0000
commitfe71257ebd81f53f32a6c6332439c700b2d11fc9 (patch)
tree098707e3b4b5c3c67d17c28a59b8784383281c30 /tools/lvscan.c
parentc37f0c7d7cb71178216f2afa26eccc26c54c8759 (diff)
downloadlvm2-fe71257ebd81f53f32a6c6332439c700b2d11fc9.tar.gz
Remove dead assignment of lv_total and lv_capasity_total
Variables 'lv_total' and 'lv_capasity_total' are unused.
Diffstat (limited to 'tools/lvscan.c')
-rw-r--r--tools/lvscan.c6
1 files changed, 0 insertions, 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;
}