]> sourceware.org Git - lvm2.git/commitdiff
Remove dead assignment of lv_total and lv_capasity_total
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 22 Dec 2010 12:06:54 +0000 (12:06 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 22 Dec 2010 12:06:54 +0000 (12:06 +0000)
Variables 'lv_total' and 'lv_capasity_total' are unused.

tools/lvscan.c

index 638d2f57ace6cb8f303d48e2721cc7fcffd6d5db..1f91d39c9f0589f51bc64e13708c2ef206f67e1e 100644 (file)
@@ -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;
 }
 
This page took 0.03439 seconds and 5 git commands to generate.