diff --git a/src/slurmctld/node_scheduler.c b/src/slurmctld/node_scheduler.c
index 89f256c60de57845ed8b4240b55c777a68f4f710..3c97a61752ac3e6368b3a1c26f6b62f333340bba 100644
--- a/src/slurmctld/node_scheduler.c
+++ b/src/slurmctld/node_scheduler.c
@@ -1464,7 +1464,6 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only,
 		return ESLURM_REQUESTED_PART_CONFIG_UNAVAILABLE;
 	}
 
-retry:
 	/* build sets of usable nodes based upon their configuration */
 	error_code = _build_node_list(job_ptr, &node_set_ptr, &node_set_size);
 	if (error_code)