From 469bcc28ac30f004ac5d22a53ee2b1e123fc9731 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 16 Jul 2023 22:17:23 +0200 Subject: [PATCH] cleanup: remove duplicated code Commit cac4a9743acb826d785c0e51e9a752d8959ced80 moved setting if layer structed to the function front, but the old code was still left in original place. --- lib/activate/dev_manager.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 1ab63d41c..4f4fc943e 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -3586,9 +3586,6 @@ static int _add_new_lv_to_dtree(struct dev_manager *dm, struct dm_tree *dtree, dm_tree_node_get_context(dnode)) return 1; - lvlayer->lv = lv; - lvlayer->visible_component = (laopts->component_lv == lv) ? 1 : 0; - /* * Add LV to dtree. * If we're working with precommitted metadata, clear any