summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Hao2017-07-16 00:44:01 +0200
committerMichael Roth2017-07-18 02:12:16 +0200
commitf8837b3765f507409a2dd1946db60144fe7fb71e (patch)
tree2c8c2f394c63e42906bb2ae9f95e5aad0d8cbd73
parentqemu-ga: check if utmpx.h is available on the system (diff)
downloadqemu-f8837b3765f507409a2dd1946db60144fe7fb71e.tar.gz
qemu-f8837b3765f507409a2dd1946db60144fe7fb71e.tar.xz
qemu-f8837b3765f507409a2dd1946db60144fe7fb71e.zip
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 <peng.hao2@zte.com.cn> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
-rw-r--r--qga/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/main.c b/qga/main.c
index 405c1290f8..dcd6104bb0 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");