mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-27 01:57:55 +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
e45d947322
commit
57d19b3f1b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user