8230398: Remove NULL checks before FREE_C_HEAP_ARRAY

Reviewed-by: dholmes, kbarrett, tschatzl
This commit is contained in:
Leo Korinth 2019-09-11 14:16:30 +02:00
parent eafb888c18
commit 4b6f9ed07f
44 changed files with 86 additions and 183 deletions

View file

@ -454,9 +454,7 @@ static bool assign_distribution(processorid_t* id_array,
board = 0;
}
}
if (available_id != NULL) {
FREE_C_HEAP_ARRAY(bool, available_id);
}
FREE_C_HEAP_ARRAY(bool, available_id);
return true;
}
@ -493,9 +491,7 @@ bool os::distribute_processes(uint length, uint* distribution) {
result = false;
}
}
if (id_array != NULL) {
FREE_C_HEAP_ARRAY(processorid_t, id_array);
}
FREE_C_HEAP_ARRAY(processorid_t, id_array);
return result;
}