mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Remove unused variable label
Variable 'label' is unused in _format1_pv_write().
This commit is contained in:
parent
bb86f0a22a
commit
4675e4f17d
@ -428,13 +428,12 @@ static int _format1_pv_write(const struct format_type *fmt, struct physical_volu
|
||||
struct dm_pool *mem;
|
||||
struct disk_list *dl;
|
||||
struct dm_list pvs;
|
||||
struct label *label;
|
||||
struct lvmcache_info *info;
|
||||
|
||||
if (!(info = lvmcache_add(fmt->labeller, (char *) &pv->id, pv->dev,
|
||||
pv->vg_name, NULL, 0)))
|
||||
return_0;
|
||||
label = info->label;
|
||||
|
||||
info->device_size = pv->size << SECTOR_SHIFT;
|
||||
info->fmt = fmt;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user