if (!(vm = openvzDomObjFromDomain(driver, dom->uuid)))
return -1;
- if (nvcpus <= 0) {
+ if (nvcpus == 0) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Number of vCPUs should be >= 1"));
goto cleanup;
VBOX_UTF16_TO_UTF8(valueDisplayUtf16, &valueDisplayUtf8);
VBOX_UTF16_FREE(valueDisplayUtf16);
- if (strlen(valueDisplayUtf8) <= 0)
+ if (strlen(valueDisplayUtf8) == 0)
VBOX_UTF8_FREE(valueDisplayUtf8);
}
gVBoxAPI.UArray.vboxArrayGet(&deviceFilters, USBCommon,
gVBoxAPI.UArray.handleUSBGetDeviceFilters(USBCommon));
- if (deviceFilters.count <= 0)
+ if (deviceFilters.count == 0)
goto release_filters;
/* check if the filters are active and then only
gVBoxAPI.UArray.vboxArrayGet(&sharedFolders, machine,
gVBoxAPI.UArray.handleMachineGetSharedFolders(machine));
- if (sharedFolders.count <= 0) {
- if (sharedFolders.count == 0)
- ret = 0;
+ if (sharedFolders.count == 0) {
+ ret = 0;
goto cleanup;
}