Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
Covered by the remaining one.

Signed-off-by: Ralph Castain <[email protected]>
  • Loading branch information
rhc54 committed Nov 17, 2023
1 parent 733a559 commit d4f8a23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mca/plm/ssh/plm_ssh_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,7 @@ static int setup_launch(int *argcptr, char ***argvptr, char *nodename, int *node
if (0 == strcmp(orted_cmd, "prted")) {
/* if the cmd is our standard one, then add the prefix */
value = pmix_basename(prte_install_dirs.bindir);
if (0 == strcmp(prefix_dir, "/") ||
'/' == prefix_dir[strlen(prefix_dir)-1]) {
if ('/' == prefix_dir[strlen(prefix_dir)-1]) {
pmix_asprintf(&tmp, "%s%s", prefix_dir, value);
} else {
pmix_asprintf(&tmp, "%s/%s", prefix_dir, value);
Expand Down

0 comments on commit d4f8a23

Please sign in to comment.