aboutsummaryrefslogtreecommitdiff
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2024-12-05 17:18:45 +0100
committerKonstantin Kostiuk <kkostiuk@redhat.com>2024-12-18 13:46:16 +0200
commit2657a92b5479c8705b128ed1e55feb8960ed498a (patch)
treeb3e320a8e7d627ab5a12649046e9cb286ffb907b /hw/core/qdev-properties-system.c
parent5788e9602416d24533a19d24b087d56a75119c36 (diff)
downloadqemu-2657a92b5479c8705b128ed1e55feb8960ed498a.zip
qemu-2657a92b5479c8705b128ed1e55feb8960ed498a.tar.gz
qemu-2657a92b5479c8705b128ed1e55feb8960ed498a.tar.bz2
qga: Don't access global variable in run_agent_once()
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 the function argument. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Konstantin Kostiuk <kkostiuk@redhat.com> Link: https://lore.kernel.org/r/8ae7f5d5032b14a5b956fe8aaf47bae5ca401699.1733414906.git.mprivozn@redhat.com Signed-off-by: Konstantin Kostiuk <kkostiuk@redhat.com>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions