Skip to content

Commit 3c98e53

Browse files
committed
mpi_t: Remove invalid error check
MPL_env2str is used to check for CVARs with string or enum type. It returns only 0 or 1 based on whether the environment variable is found. It never returns -1, so we can safely remove the error check.
1 parent 7f00e56 commit 3c98e53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

maint/extractcvars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ EOT
340340
elsif ($p->{type} eq 'string' or $p->{type} eq 'enum') {
341341
print OUTPUT_C <<EOT;
342342
rc = MPL_env2${env_fn}("$env_name", &tmp_str);
343-
MPIR_ERR_CHKANDJUMP1((-1 == rc),mpi_errno,MPI_ERR_OTHER,"**envvarparse","**envvarparse %s","$env_name");
344343
got_rc += rc;
345344
EOT
346345
}

0 commit comments

Comments
 (0)