[PATCH] qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()
Erik Skultety
eskultet at redhat.com
Mon Oct 18 10:08:03 UTC 2021
On Mon, Oct 18, 2021 at 10:54:55AM +0200, Michal Privoznik wrote:
> There are two variables (@vm and @domflags) in qemuConnectGetAllDomainStats()
> that are used only within the for() loop but declared for entire function.
> Bring them into the loop to make it obvious they are not used outside of it.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/qemu/qemu_driver.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
Reviewed-by: Erik Skultety <eskultet at redhat.com>
More information about the libvir-list
mailing list