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>
This commit is contained in:
Blue Swirl 2010-03-07 13:45:38 +00:00
parent 7071ff3288
commit b0e0486730

View file

@ -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);