1
1

Cosmetics. Brian fixes my crappy code and I fix the curly braces.

That's teamwork, right? ;)

This commit was SVN r14517.
Этот коммит содержится в:
Adrian Knoth 2007-04-25 20:17:19 +00:00
родитель d68ff8c2a3
Коммит e3d35258b4

Просмотреть файл

@ -372,7 +372,9 @@ static int mca_btl_tcp_component_create_instances(void)
} }
kindexes = malloc(sizeof(int) * if_count); 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) */ /* 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); opal_argv_free(exclude);
cleanup: cleanup:
if (NULL != kindexes) free(kindexes); if (NULL != kindexes) {
free(kindexes);
}
return ret; return ret;
} }