Cosmetics. Brian fixes my crappy code and I fix the curly braces.
That's teamwork, right? ;) This commit was SVN r14517.
Этот коммит содержится в:
родитель
d68ff8c2a3
Коммит
e3d35258b4
@ -372,7 +372,9 @@ static int mca_btl_tcp_component_create_instances(void)
|
||||
}
|
||||
|
||||
kindexes = malloc(sizeof(int) * if_count);
|
||||
if (NULL == kindexes) return OMPI_ERR_OUT_OF_RESOURCE;
|
||||
if (NULL == kindexes) {
|
||||
return OMPI_ERR_OUT_OF_RESOURCE;
|
||||
}
|
||||
|
||||
/* calculate the number of kernel indexes (number of physical NICs) */
|
||||
{
|
||||
@ -463,7 +465,9 @@ static int mca_btl_tcp_component_create_instances(void)
|
||||
opal_argv_free(exclude);
|
||||
|
||||
cleanup:
|
||||
if (NULL != kindexes) free(kindexes);
|
||||
if (NULL != kindexes) {
|
||||
free(kindexes);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user