Skip to content
Snippets Groups Projects
Commit cdf86bc7 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Remove useless if

Coverity scan #742057 (logically dead code)
parent 430a0966
No related branches found
No related tags found
No related merge requests found
......@@ -191,13 +191,9 @@ int knot_node_add_rrset(knot_node_t *node, knot_rrset_t *rrset,
(merge) ? knot_rrset_merge : NULL))) < 0) {
dbg_node("Failed to add rrset to node->rrset_tree.\n");
return KNOT_ERROR;
}
if (ret >= 0) {
} else {
node->rrset_count += (ret > 0 ? 0 : 1);
return ret;
} else {
return KNOT_ERROR;
}
}
......@@ -209,13 +205,9 @@ int knot_node_add_rrset_no_dupl(knot_node_t *node, knot_rrset_t *rrset)
knot_rrset_merge_no_dupl))) < 0) {
dbg_node("Failed to add rrset to node->rrset_tree.\n");
return KNOT_ERROR;
}
if (ret >= 0) {
} else {
node->rrset_count += (ret > 0 ? 0 : 1);
return ret;
} else {
return KNOT_ERROR;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment