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

cov: drop some unneeded continue

This commit is contained in:
Zdenek Kabelac 2024-03-25 16:54:11 +01:00
parent ae7b59f509
commit ac90ab7736

View File

@ -1650,14 +1650,10 @@ int merge_config_tree(struct cmd_context *cmd, struct dm_config_tree *cft,
if (merge_type == CONFIG_MERGE_TYPE_TAGS) { if (merge_type == CONFIG_MERGE_TYPE_TAGS) {
/* Remove any "tags" nodes */ /* Remove any "tags" nodes */
for (cn2 = cn->child; cn2; cn2 = cn2->sib) { for (cn2 = cn->child; cn2; cn2 = cn2->sib) {
if (!strcmp(cn2->key, "tags")) { if (!strcmp(cn2->key, "tags"))
cn->child = cn2->sib; cn->child = cn2->sib;
continue; else if (cn2->sib && !strcmp(cn2->sib->key, "tags"))
}
if (cn2->sib && !strcmp(cn2->sib->key, "tags")) {
cn2->sib = cn2->sib->sib; cn2->sib = cn2->sib->sib;
continue;
}
} }
} }
continue; continue;