From: Peng Hao Date: Sat, 15 Jul 2017 22:44:01 +0000 (+0800) Subject: qga-win32: remove a redundancy code X-Git-Tag: v2.10.0-rc0~46^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8837b3765f507409a2dd1946db60144fe7fb71e;p=thirdparty%2Fqemu.git qga-win32: remove a redundancy code In the first line of run_agent,it has set ga_state = s,don't need set ga_state = s again behind. Signed-off-by: Peng Hao Signed-off-by: Michael Roth --- diff --git a/qga/main.c b/qga/main.c index 405c1290f8d..dcd6104bb00 100644 --- a/qga/main.c +++ b/qga/main.c @@ -1314,7 +1314,7 @@ static int run_agent(GAState *s, GAConfig *config, int 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 = s; + #ifndef _WIN32 if (!register_signal_handlers()) { g_critical("failed to register signal handlers");