mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
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:
parent
9add02a0b0
commit
cb873e9d15
@ -720,7 +720,6 @@ int nwfilterRegister(void) {
|
|||||||
return -1;
|
return -1;
|
||||||
if (virRegisterStateDriver(&stateDriver) < 0)
|
if (virRegisterStateDriver(&stateDriver) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
if (virDomainConfNWFilterRegister(&domainNWFilterDriver) < 0)
|
virDomainConfNWFilterRegister(&domainNWFilterDriver);
|
||||||
return -1;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -7840,7 +7840,7 @@ remoteRegister(void)
|
|||||||
if (virRegisterNWFilterDriver(&nwfilter_driver) < 0)
|
if (virRegisterNWFilterDriver(&nwfilter_driver) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
#ifdef WITH_LIBVIRTD
|
#ifdef WITH_LIBVIRTD
|
||||||
if (virRegisterStateDriver(&state_driver) == -1) < 0)
|
if (virRegisterStateDriver(&state_driver) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user