提交 cb873e9d 编写于 作者: D Daniel P. Berrange

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: NDaniel P. Berrange <berrange@redhat.com>
上级 9add02a0
......@@ -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;
}
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册