diff --git a/src/slurmctld/partition_mgr.c b/src/slurmctld/partition_mgr.c
index a6734b429bfc047a496d3065fb13c3692d6dfb7b..e9ca23c57383674cc4a3aca86fb654ddf5a6c79d 100644
--- a/src/slurmctld/partition_mgr.c
+++ b/src/slurmctld/partition_mgr.c
@@ -1087,8 +1087,6 @@ extern int validate_alloc_node(struct part_record *part_ptr, char* alloc_node)
 {
 	int status;
 	
- 	int i = 0;
-	
  	if (part_ptr->allow_alloc_nodes == NULL)
  		return 1;	/* all allocating nodes allowed */
  	if (alloc_node == NULL)