diff --git a/net/net.c b/net/net.c
index 651f3f73ef2df8ade28dfebafb28ee422c4fb5df..4c6dfd1ca1c551323df895d5a900f2c28b1d86c3 100644
--- a/net/net.c
+++ b/net/net.c
@@ -231,7 +231,7 @@ void net_auto_load(void)
 	TftpStart(TFTPGET);
 }
 
-static void NetInitLoop(enum proto_t protocol)
+static void NetInitLoop(void)
 {
 	static int env_changed_id;
 	int env_id = get_env_id();
@@ -311,7 +311,7 @@ restart:
 	 *	here on, this code is a state machine driven by received
 	 *	packets and timer events.
 	 */
-	NetInitLoop(protocol);
+	NetInitLoop();
 
 	switch (net_check_prereq(protocol)) {
 	case 1: