1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

remove unused variable

resulting from commit cb798ee1c1
  "lvmcache: remove lvmcache_update_vg_from_write"
This commit is contained in:
David Teigland 2022-01-13 11:41:09 -06:00
parent 18f451e09e
commit 0c80ea8847

View File

@ -3100,7 +3100,6 @@ static int _vg_commit_mdas(struct volume_group *vg)
{ {
struct metadata_area *mda, *tmda; struct metadata_area *mda, *tmda;
DM_LIST_INIT(ignored); DM_LIST_INIT(ignored);
int failed = 0;
int good = 0; int good = 0;
/* Rearrange the metadata_areas_in_use so ignored mdas come first. */ /* Rearrange the metadata_areas_in_use so ignored mdas come first. */
@ -3115,11 +3114,9 @@ static int _vg_commit_mdas(struct volume_group *vg)
dm_list_iterate_items(mda, &vg->fid->metadata_areas_in_use) { dm_list_iterate_items(mda, &vg->fid->metadata_areas_in_use) {
if (mda->status & MDA_FAILED) if (mda->status & MDA_FAILED)
continue; continue;
failed = 0;
if (mda->ops->vg_commit && if (mda->ops->vg_commit &&
!mda->ops->vg_commit(vg->fid, vg, mda)) { !mda->ops->vg_commit(vg->fid, vg, mda)) {
stack; stack;
failed = 1;
} else } else
good++; good++;
} }