]> git.proxmox.com Git - qemu.git/commitdiff
slirp: clean up slirp_update_timeout
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 28 Aug 2013 17:12:15 +0000 (19:12 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 17 Sep 2013 10:26:05 +0000 (12:26 +0200)
No need to write out the timeout early, keep it local until we are done.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
slirp/slirp.c

index fe16367db894a91951e0931069fb3466aaa48770..bad8dad02e97e5350bf966dfa627ccd862d3edd2 100644 (file)
@@ -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.