aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-10-03 17:46:36 +0200
committerSverker Eriksson <[email protected]>2018-10-03 19:00:53 +0200
commitb276b28f467cadcf4255b37114c323598b551138 (patch)
tree46e7b065ef2ff2de6ec18a9ffcebf6793bd8eb55 /erts
parente3592b63ed0c1d563c6b9d146f00b07fcc272c24 (diff)
downloadotp-b276b28f467cadcf4255b37114c323598b551138.tar.gz
otp-b276b28f467cadcf4255b37114c323598b551138.tar.bz2
otp-b276b28f467cadcf4255b37114c323598b551138.zip
erts: Remove dead code in erl_db_catree
'parent' is route node and 'neighbor' is base node, they can never be equal. 'neighbor_parent' has already been set correctly for all cases.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/erl_db_catree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/erts/emulator/beam/erl_db_catree.c b/erts/emulator/beam/erl_db_catree.c
index 61667202c0..f2baf50cbc 100644
--- a/erts/emulator/beam/erl_db_catree.c
+++ b/erts/emulator/beam/erl_db_catree.c
@@ -1314,11 +1314,7 @@ erl_db_catree_force_join_right(DbTableCATree *tb,
&neighbor->u.base.free_item,
sizeof_base_node(neighbor->u.base.lc.key_size));
- if (parent == neighbor) {
- *result_parent_wb = gparent;
- } else {
- *result_parent_wb = neighbor_parent;
- }
+ *result_parent_wb = neighbor_parent;
return new_neighbor;
}