From nobody Tue Apr 30 01:47:41 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1500129096485496.3229704510338; Sat, 15 Jul 2017 07:31:36 -0700 (PDT) Received: from localhost ([::1]:42290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWO6Y-0003z4-Bs for importer@patchew.org; Sat, 15 Jul 2017 10:31:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWO5j-0003iE-Jz for qemu-devel@nongnu.org; Sat, 15 Jul 2017 10:30:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWO5g-0001QZ-Ce for qemu-devel@nongnu.org; Sat, 15 Jul 2017 10:30:43 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:33917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWO5f-0001Ni-NY for qemu-devel@nongnu.org; Sat, 15 Jul 2017 10:30:40 -0400 Received: from unknown (HELO mse01.zte.com.cn) (10.30.3.20) by localhost with (AES256-SHA encrypted) SMTP; 15 Jul 2017 14:30:08 -0000 Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id v6FETpNj016402; Sat, 15 Jul 2017 22:29:51 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017071522300002-4017242 ; Sat, 15 Jul 2017 22:30:00 +0800 X-scanvirus: By SEG_CYREN AntiVirus Engine X-scanresult: CLEAN X-MAILFROM: X-RCPTTO: X-FROMIP: 10.30.3.20 X-SEG-Scaned: 1 X-Received: unknown,10.30.3.20,20170715223008 From: Peng Hao To: mdroth@linux.vnet.ibm.com Date: Sun, 16 Jul 2017 06:44:01 +0800 Message-Id: <1500158641-23033-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-07-15 22:30:00, Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2017-07-15 22:29:32, Serialize complete at 2017-07-15 22:29:32 X-MAIL: mse01.zte.com.cn v6FETpNj016402 X-HQIP: 127.0.0.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 202.103.147.172 Subject: [Qemu-devel] [PATCH] qga-win32: remove a redundancy code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peng Hao , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" In the first line of run_agent,it has set ga_state =3D s,don't need set ga_state =3D s again behind. Signed-off-by: Peng Hao Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- qga/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qga/main.c b/qga/main.c index 405c129..dcd6104 100644 --- a/qga/main.c +++ b/qga/main.c @@ -1314,7 +1314,7 @@ static int run_agent(GAState *s, GAConfig *config, in= t socket_activation) ga_command_state_init(s, s->command_state); ga_command_state_init_all(s->command_state); json_message_parser_init(&s->parser, process_event); - ga_state =3D s; + #ifndef _WIN32 if (!register_signal_handlers()) { g_critical("failed to register signal handlers"); --=20 1.8.3.1