[RESEND,3/3] socket: clean up redundant assignment

Submitted by Amos Kong on Aug. 1, 2012, 8:59 a.m.

Details

Message ID 1343811543-12137-4-git-send-email-akong@redhat.com
State New
Headers show

Commit Message

Amos Kong Aug. 1, 2012, 8:59 a.m.
Signed-off-by: Amos Kong <akong@redhat.com>
---
 qemu-sockets.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/qemu-sockets.c b/qemu-sockets.c
index c636882..9cd4114 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -282,7 +282,6 @@  int inet_connect_opts(QemuOpts *opts, Error **errp)
                         inet_strfamily(e->ai_family),
                         e->ai_canonname, uaddr, uport, strerror(errno));
             closesocket(sock);
-            sock = -1;
             continue;
         }
         freeaddrinfo(res);