bridge_driver: Resolve Coverity CHECKED_RETURN warning

The networkRegister() didn't check the return status of the
virRegisterNetworkDriver() call like other callers, so just
check and handle here as well.
This commit is contained in:
John Ferlan 2013-12-02 15:29:41 -05:00
parent 950a493ba9
commit b17168cbf6

View File

@ -3046,7 +3046,8 @@ static virStateDriver networkStateDriver = {
};
int networkRegister(void) {
virRegisterNetworkDriver(&networkDriver);
if (virRegisterNetworkDriver(&networkDriver) < 0)
return -1;
virRegisterStateDriver(&networkStateDriver);
return 0;
}