Fix mistakes in checking return values

Thre was a syntax error in checking virRegisterStateDriver in
the remote driver, and bogus checking of a void return type
of virDomainConfNWFilterRegister in nwfilter.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2014-03-17 15:47:45 +00:00
parent 9add02a0b0
commit cb873e9d15
2 changed files with 2 additions and 3 deletions

View File

@ -720,7 +720,6 @@ int nwfilterRegister(void) {
return -1;
if (virRegisterStateDriver(&stateDriver) < 0)
return -1;
if (virDomainConfNWFilterRegister(&domainNWFilterDriver) < 0)
return -1;
virDomainConfNWFilterRegister(&domainNWFilterDriver);
return 0;
}

View File

@ -7840,7 +7840,7 @@ remoteRegister(void)
if (virRegisterNWFilterDriver(&nwfilter_driver) < 0)
return -1;
#ifdef WITH_LIBVIRTD
if (virRegisterStateDriver(&state_driver) == -1) < 0)
if (virRegisterStateDriver(&state_driver) < 0)
return -1;
#endif