Skip to content
Snippets Groups Projects
Commit eb6c2840 authored by Michal Privoznik's avatar Michal Privoznik
Browse files

ch: Rework virCHProcessConnectMonitor()


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: default avatarMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: default avatarPeter Krempa <pkrempa@redhat.com>
parent 5ed2ed87
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment