diff --git a/arch/sandbox/lib/common.c b/arch/sandbox/lib/common.c index 0db4403..e8f4317 100644 --- a/arch/sandbox/lib/common.c +++ b/arch/sandbox/lib/common.c @@ -85,8 +85,10 @@ int linux_tstc(int fd) { + struct timeval tv = { + .tv_usec = 100, + }; fd_set rfds; - struct timeval tv; int ret; FD_ZERO(&rfds); @@ -99,9 +101,6 @@ * things like networking slow, because U-Boot will * poll this function very often. */ - tv.tv_sec = 0; - tv.tv_usec = 100; - ret = select(fd + 1, &rfds, NULL, NULL, &tv); if (ret) @@ -380,4 +379,4 @@ * * @section simu_dbg How to debug U-Boot simulator * - */ \ No newline at end of file + */