dm: core: Tidy up ofnode-writing test
[platform/kernel/u-boot.git] / net / rarp.c
index a676a42..231b623 100644 (file)
 #include "rarp.h"
 
 #define TIMEOUT 5000UL /* Milliseconds before trying BOOTP again */
-#ifndef        CONFIG_NET_RETRY_COUNT
-#define TIMEOUT_COUNT 5 /* # of timeouts before giving up  */
-#else
-#define TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT)
-#endif
 
 int rarp_try;
 
@@ -57,7 +52,7 @@ void rarp_receive(struct ip_udp_hdr *ip, unsigned len)
  */
 static void rarp_timeout_handler(void)
 {
-       if (rarp_try >= TIMEOUT_COUNT) {
+       if (rarp_try >= CONFIG_NET_RETRY_COUNT) {
                puts("\nRetry count exceeded; starting again\n");
                net_start_again();
        } else {