Re: [PATCH v2 1/4] qga: Don't access global variable in run_agent_once()

2024-12-18 Thread Konstantin Kostiuk
Hi Michal, The PULL with this patch was sent. Skip it in the next version of this series. Best Regards, Konstantin Kostiuk. On Thu, Dec 5, 2024 at 6:19 PM Michal Privoznik wrote: > The run_agent_once() function is already given GAState via an > argument. There's no need to access the global g

[PATCH v2 1/4] qga: Don't access global variable in run_agent_once()

2024-12-05 Thread Michal Privoznik
The run_agent_once() function is already given GAState via an argument. There's no need to access the global ga_state variable which points to the argument anyways (thanks to initialize_agent()). Worse, some parts of the function use the argument and the other use the global variable. Stick with t