Commit 45de503e authored by Michal Privoznik's avatar Michal Privoznik

libvirtSnmpInit: Don't report errors from libvirtRegisterEvents()

The libvirtRegisterEvents() function now reports errors on its
own. No need to duplicate the effort.
Signed-off-by: 's avatarMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: 's avatarMartin Kletzander <mkletzan@redhat.com>
parent bb1b0ed9
Pipeline #33572215 failed with stages
......@@ -254,10 +254,8 @@ int libvirtSnmpInit(void)
return -1;
}
if ((callbackRet == -1) && libvirtRegisterEvents(conn)) {
printf("Unable to register domain events\n");
if ((callbackRet == -1) && libvirtRegisterEvents(conn))
return -1;
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment