mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Remove dead assignment of lv_total and lv_capasity_total
Variables 'lv_total' and 'lv_capasity_total' are unused.
This commit is contained in:
parent
c37f0c7d7c
commit
fe71257ebd
@ -19,8 +19,6 @@ static int lvscan_single(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
void *handle __attribute__((unused)))
|
void *handle __attribute__((unused)))
|
||||||
{
|
{
|
||||||
struct lvinfo info;
|
struct lvinfo info;
|
||||||
int lv_total = 0;
|
|
||||||
uint64_t lv_capacity_total = 0;
|
|
||||||
int inkernel, snap_active = 1;
|
int inkernel, snap_active = 1;
|
||||||
struct lv_segment *snap_seg = NULL;
|
struct lv_segment *snap_seg = NULL;
|
||||||
percent_t snap_percent; /* fused, fsize; */
|
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),
|
display_size(cmd, lv->size),
|
||||||
get_alloc_string(lv->alloc));
|
get_alloc_string(lv->alloc));
|
||||||
|
|
||||||
lv_total++;
|
|
||||||
|
|
||||||
lv_capacity_total += lv->size;
|
|
||||||
|
|
||||||
return ECMD_PROCESSED;
|
return ECMD_PROCESSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user