Re: [PATCH] qemu: Decrease scope of variables in qemuConnectGetAllDomainStats()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  src/qemu/qemu_driver.c | 7 ++-----
>  1 file changed, 2 insertions(+), 5 deletions(-)
> 
Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux