From patchwork Wed Aug 1 08:59:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 174403 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D56BD2C00B9 for ; Wed, 1 Aug 2012 18:59:20 +1000 (EST) Received: from localhost ([::1]:57176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwUly-0000wF-UG for incoming@patchwork.ozlabs.org; Wed, 01 Aug 2012 04:59:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwUlO-00081W-IU for qemu-devel@nongnu.org; Wed, 01 Aug 2012 04:58:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwUlN-0002ij-Nt for qemu-devel@nongnu.org; Wed, 01 Aug 2012 04:58:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwUlN-0002ie-GA; Wed, 01 Aug 2012 04:58:41 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q718weJF000757 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Aug 2012 04:58:40 -0400 Received: from dhcp-8-167.nay.redhat.com ([10.66.7.126]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q718wSqE027838; Wed, 1 Aug 2012 04:58:38 -0400 From: Amos Kong To: qemu-devel@nongnu.org, qemu-trivial@nongnu.org Date: Wed, 1 Aug 2012 16:59:03 +0800 Message-Id: <1343811543-12137-4-git-send-email-akong@redhat.com> In-Reply-To: <1343811543-12137-1-git-send-email-akong@redhat.com> References: <1343811543-12137-1-git-send-email-akong@redhat.com> In-Reply-To: <1342539951-30915-1-git-send-email-akong@redhat.com> References: <1342539951-30915-1-git-send-email-akong@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: aliguori@us.ibm.com, Amos Kong , quintela@redhat.com Subject: [Qemu-devel] [RESEND PATCH 3/3] socket: clean up redundant assignment X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Amos Kong --- qemu-sockets.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) 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);