mirror of
https://github.com/qemu/qemu.git
synced 2025-08-09 19:05:29 +00:00
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>
This commit is contained in:
parent
e674605f98
commit
f8837b3765
@ -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(s, s->command_state);
|
||||||
ga_command_state_init_all(s->command_state);
|
ga_command_state_init_all(s->command_state);
|
||||||
json_message_parser_init(&s->parser, process_event);
|
json_message_parser_init(&s->parser, process_event);
|
||||||
ga_state = s;
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
if (!register_signal_handlers()) {
|
if (!register_signal_handlers()) {
|
||||||
g_critical("failed to register signal handlers");
|
g_critical("failed to register signal handlers");
|
||||||
|
Loading…
Reference in New Issue
Block a user