[PATCH] lwip: sntp: remove redundant sys_check_timeouts()

Jerome Forissier jerome.forissier at linaro.org
Fri Aug 1 10:12:20 CEST 2025


Now that sys_check_timeouts() is called in net_lwip_rx(), there is no
need to call it from the SNTP receive loop. Remove the redundant call.

Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---

 cmd/lwip/sntp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/cmd/lwip/sntp.c b/cmd/lwip/sntp.c
index ae02bb11040..608345c873b 100644
--- a/cmd/lwip/sntp.c
+++ b/cmd/lwip/sntp.c
@@ -79,7 +79,6 @@ static int sntp_loop(struct udevice *udev, ip_addr_t *srvip)
 	sys_timeout(SNTP_TIMEOUT, no_response, NULL);
 	while (sntp_state == NOT_DONE) {
 		net_lwip_rx(udev, netif);
-		sys_check_timeouts();
 		if (ctrlc()) {
 			printf("\nAbort\n");
 			sntp_state = ABORTED;
-- 
2.43.0

base-commit: f5e968a28e7cdc2c4365f5a382e02f074ee03fac
branch: sntp-remove-redundant-sys_check_timeouts


More information about the U-Boot mailing list