qga-win32: remove a redundancy code
authorPeng Hao <peng.hao2@zte.com.cn>
Sat, 15 Jul 2017 22:44:01 +0000 (06:44 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 18 Jul 2017 00:12:16 +0000 (19:12 -0500)
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 <peng.hao2@zte.com.cn>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/main.c

index 405c1290f8d52a1c8268425cc53fdeac4edd8bbd..dcd6104bb00065c58ef29cafb306a01d833225a3 100644 (file)
@@ -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");