From 426e3e6ce1abdb0d85faefbfac3cf4dcc7f224a3 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 28 Aug 2013 19:12:15 +0200 Subject: 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 --- slirp/slirp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slirp') diff --git a/slirp/slirp.c b/slirp/slirp.c index fe16367db8..bad8dad02e 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. -- cgit v1.2.1