Don't bother checking return from virInitialize.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Mar 2015 12:53:29 +0000 (12:53 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 17 Mar 2015 12:53:29 +0000 (12:53 +0000)
The Perl bindings don't do this, and it seems that the call can never
fail, or if it does we don't care.

libvirt/libvirt_c_oneoffs.c

index 32e5a4b..5d82194 100644 (file)
@@ -1229,12 +1229,9 @@ CAMLprim value
 ocaml_libvirt_init (value unit)
 {
   CAMLparam1 (unit);
-  CAMLlocal1 (rv);
-  int r;
 
   virSetErrorFunc (NULL, ignore_errors);
-  r = virInitialize ();
-  CHECK_ERROR (r == -1, "virInitialize");
+  virInitialize ();
 
   CAMLreturn (Val_unit);
 }