Skip to content

Commit

Permalink
core: remove overzealous assertions in hwloc_obj_add_children_sets()
Browse files Browse the repository at this point in the history
These were needed when this function was only internally used
a long time ago, but there's no reason the prevent other cases now
since inserting custom groups may need it.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Feb 28, 2019
1 parent 48a2be5 commit 531e47d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hwloc/topology.c
Expand Up @@ -2017,9 +2017,7 @@ int
hwloc_obj_add_children_sets(hwloc_obj_t obj)
{
hwloc_obj_t child;
assert(obj->cpuset != NULL);
for_each_child(child, obj) {
assert(child->cpuset != NULL);
hwloc_obj_add_other_obj_sets(obj, child);
}
/* No need to look at Misc children, they contain no PU. */
Expand Down

0 comments on commit 531e47d

Please sign in to comment.