File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ hwloc_distrib_root_levels(hwloc_topology_t topology,
122
122
qsort (levels , n_types , sizeof (* levels ), hwloc_distrib_level_cmp_depth );
123
123
124
124
// Walk from top to bottom and set arity to the maximum arity below root field.
125
-
126
125
parent = root ;
127
126
for (i = 0 ; i < n_types ; i ++ ){
128
127
while (parent ) {
@@ -208,7 +207,9 @@ hwloc_distrib_iterator_round_robin(hwloc_topology_t topology,
208
207
const hwloc_obj_type_t type ,
209
208
const unsigned long flags ){
210
209
hwloc_obj_t root = hwloc_get_obj_by_depth (topology , 0 , 0 );
211
- struct hwloc_distrib_iterator * it = malloc (sizeof (* it ) + sizeof (hwloc_obj_t ) + sizeof (struct hwloc_distrib_level * ));
210
+ struct hwloc_distrib_iterator * it ;
211
+
212
+ it = malloc (sizeof (* it ) + sizeof (hwloc_obj_t ) + sizeof (struct hwloc_distrib_level * ));
212
213
if (it == NULL )
213
214
return NULL ;
214
215
You can’t perform that action at this time.
0 commit comments