Skip to content

Commit b3d65d5

Browse files
committed
Remove wrong error.
Issuing this error was a misinterpretation of the standard.
1 parent 8e72b5d commit b3d65d5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/runtime-libraries/mpi/mpi_caf.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10357,8 +10357,6 @@ void
1035710357
PREFIX(form_team)(int team_id, caf_team_t *team, int *new_index, int *stat,
1035810358
char *errmsg, charlen_t errmsg_len)
1035910359
{
10360-
static const char *duplicate_team_id
10361-
= "FORM TEAM: Team ids have to be unique";
1036210360
static const char *negative_team_id
1036310361
= "FORM TEAM: Team id shall be a positive unique integer";
1036410362
static const char *negative_new_index
@@ -10371,12 +10369,6 @@ PREFIX(form_team)(int team_id, caf_team_t *team, int *new_index, int *stat,
1037110369
if (stat)
1037210370
*stat = 0;
1037310371

10374-
for (caf_teams_list_t *cur = teams_list; cur; cur = cur->prev)
10375-
if (cur->team_id == team_id)
10376-
{
10377-
caf_internal_error(duplicate_team_id, stat, errmsg, errmsg_len);
10378-
return;
10379-
}
1038010372
if (team_id < 0)
1038110373
{
1038210374
caf_internal_error(negative_team_id, stat, errmsg, errmsg_len);

0 commit comments

Comments
 (0)