socket: clean up redundant assignment
Signed-off-by: Amos Kong <akong@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
parent
536c86fbf8
commit
8715fc1e4c
|
@ -284,7 +284,6 @@ int inet_connect_opts(QemuOpts *opts, Error **errp)
|
||||||
inet_strfamily(e->ai_family),
|
inet_strfamily(e->ai_family),
|
||||||
e->ai_canonname, uaddr, uport, strerror(errno));
|
e->ai_canonname, uaddr, uport, strerror(errno));
|
||||||
closesocket(sock);
|
closesocket(sock);
|
||||||
sock = -1;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
freeaddrinfo(res);
|
freeaddrinfo(res);
|
||||||
|
|
Loading…
Reference in a new issue