diff --git a/main/loader.c b/main/loader.c
index 198ebc9296c5cde4451cbe5d78401d4af2d3e8b5..8c0067d92b1593993a78fe2dc541ebfb6e2090be 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -853,8 +853,7 @@ static struct load_order_entry *add_to_load_order(const char *resource, struct l
 		if (!resource_name_match(order->resource, resource)) {
 			/* Make sure we have the proper setting for the required field 
 			   (we might have both load= and required= lines in modules.conf) */
-				order->required |= required;
-			}
+			order->required |= required;
 			return NULL;
 		}
 	}