From c78f2e6ee218d12fb71fc70cd66a21f4ea324a91 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 13 Jan 2022 11:41:09 -0600 Subject: [PATCH 12/12] remove unused variable resulting from commit cb798ee1c102aadde93965a894c5aa59d4e76e4a "lvmcache: remove lvmcache_update_vg_from_write" (cherry picked from commit 0c80ea88477b3511562036748d3bf837bf7b3e8b) --- lib/metadata/metadata.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index fabc6529a..4f947401f 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -3100,7 +3100,6 @@ static int _vg_commit_mdas(struct volume_group *vg) { struct metadata_area *mda, *tmda; DM_LIST_INIT(ignored); - int failed = 0; int good = 0; /* 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) { if (mda->status & MDA_FAILED) continue; - failed = 0; if (mda->ops->vg_commit && !mda->ops->vg_commit(vg->fid, vg, mda)) { stack; - failed = 1; } else good++; } -- 2.43.0