[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/4] slirp: clean up slirp_update_timeout
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 4/4] slirp: clean up slirp_update_timeout |
Date: |
Tue, 17 Sep 2013 12:50:25 +0200 |
No need to write out the timeout early, keep it local until we are done.
Signed-off-by: Jan Kiszka <address@hidden>
---
slirp/slirp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/slirp/slirp.c b/slirp/slirp.c
index fe16367..bad8dad 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -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.
--
1.8.1.1.298.ge7eed54