aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-07 13:45:38 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-07 13:45:38 +0000
commitb0e0486730df79311c16d7ffd2084c5aae0fcb02 (patch)
tree916bd5f4da9293b40bdf4cbd8a966bd4a05d8521 /slirp
parent7071ff3288880e3785ebac3af44a2ddc7e18d1a9 (diff)
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 <blauwirbel@gmail.com>
Diffstat (limited to 'slirp')
-rw-r--r--slirp/slirp.c3
1 files changed, 1 insertions, 2 deletions
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);