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

login
register
mail settings
Submitter Amos Kong
Date Aug. 1, 2012, 8:59 a.m.
Message ID <1343811543-12137-4-git-send-email-akong@redhat.com>
Download mbox | patch
Permalink /patch/174403/
State New
Headers show

Comments

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

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