Re: [PATCH 6/6] ch: Rework virCHProcessConnectMonitor()

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

 



On Thu, Mar 13, 2025 at 14:44:38 +0100, Michal Privoznik wrote:
> Firstly, let's switch from explicit virCHDriverGetConfig() +
> virObjectUnref() combo to g_autoptr(virCHDriverConfig). This
> leaves us with the @monitor variable which is initialized to NULL
> only to be then set to the retval of virCHMonitorNew() and
> returned instantly. Well, the variable is now useless and can be
> dropped.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/ch/ch_process.c | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)

Reviewed-by: Peter Krempa <pkrempa@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