Skip to content

Commit

Permalink
Use proper error handling in topology module. Fixes RRZE-HPC#619, sec…
Browse files Browse the repository at this point in the history
…ond attempt
  • Loading branch information
TomTheBear committed Sep 10, 2024
1 parent 6753374 commit fc37b60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,6 @@ topology_init(void)
{
cpuid_topology.activeHWThreads = sysconf(_SC_NPROCESSORS_CONF);
}
cpuid_topology.activeHWThreads = activeHWThreads;
ret = funcs.init_cpuInfo(cpuSet);
if (ret < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion src/topology_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ proc_init_cpuFeatures(void)
bstrListDestroy(flaglist);

get_cpu_perf_data();
return;
return 0;
}

int
Expand Down

0 comments on commit fc37b60

Please sign in to comment.