diff --git a/src/slurmd/slurmstepd/slurmstepd_job.c b/src/slurmd/slurmstepd/slurmstepd_job.c
index 9e118ea9d4e055a7a307fde7a96eaa1cf438c0d2..1de80d768469f9f765ac4cc1c33eb90ba6e20581 100644
--- a/src/slurmd/slurmstepd/slurmstepd_job.c
+++ b/src/slurmd/slurmstepd/slurmstepd_job.c
@@ -214,7 +214,7 @@ _job_init_task_info(stepd_step_rec_t *job, uint32_t **gtid,
 	for (i = 0; i < job->nnodes; i++) {
 		int j;
 		for (j = 1; j < job->task_cnts[i]; j++) {
-			if (gtid[i][j] != gtid[i][j-1] + 1)) {
+			if (gtid[i][j] != gtid[i][j-1] + 1) {
 				job->non_smp = 1;
 				break;
 			}