From ac90ab7736316646403415345409cb64d2c2423e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Mar 2024 16:54:11 +0100 Subject: [PATCH] cov: drop some unneeded continue --- lib/config/config.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/config/config.c b/lib/config/config.c index 1c074abe8..abe384638 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -1650,14 +1650,10 @@ int merge_config_tree(struct cmd_context *cmd, struct dm_config_tree *cft, if (merge_type == CONFIG_MERGE_TYPE_TAGS) { /* Remove any "tags" nodes */ for (cn2 = cn->child; cn2; cn2 = cn2->sib) { - if (!strcmp(cn2->key, "tags")) { + if (!strcmp(cn2->key, "tags")) cn->child = cn2->sib; - continue; - } - if (cn2->sib && !strcmp(cn2->sib->key, "tags")) { + else if (cn2->sib && !strcmp(cn2->sib->key, "tags")) cn2->sib = cn2->sib->sib; - continue; - } } } continue;