From b0e0486730df79311c16d7ffd2084c5aae0fcb02 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 7 Mar 2010 13:45:38 +0000 Subject: slirp: remove dead nested assignment, spotted by clang Although the value stored to 'r' is used in the enclosing expression, the value is never actually read from 'r'. Signed-off-by: Blue Swirl --- slirp/slirp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'slirp/slirp.c') diff --git a/slirp/slirp.c b/slirp/slirp.c index 6731f529f6..3c785cd643 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -1069,9 +1069,8 @@ static int slirp_state_load(QEMUFile *f, void *opaque, int version_id) { Slirp *slirp = opaque; struct ex_list *ex_ptr; - int r; - while ((r = qemu_get_byte(f))) { + while (qemu_get_byte(f)) { int ret; struct socket *so = socreate(slirp); -- cgit v1.2.1