slirp: clean up slirp_update_timeout
No need to write out the timeout early, keep it local until we are done. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
a42e9c4188
commit
426e3e6ce1
@ -270,8 +270,8 @@ static void slirp_update_timeout(uint32_t *timeout)
|
||||
if (*timeout <= TIMEOUT_FAST) {
|
||||
return;
|
||||
}
|
||||
*timeout = MIN(1000, *timeout);
|
||||
t = *timeout;
|
||||
|
||||
t = MIN(1000, *timeout);
|
||||
|
||||
/* If we have tcp timeout with slirp, then we will fill @timeout with
|
||||
* more precise value.
|
||||
|
Loading…
Reference in New Issue
Block a user