Don't compare a bool variable against the literal, "true".
Signed-off-by: Wei Jiangang <weijg.fnst@cn.fujitsu.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
break;
case DATATYPE_BOOLEAN:
- if (item->u.boolean == true)
+ if (item->u.boolean)
virBufferAddLit(buf, "true");
else
virBufferAddLit(buf, "false");
}
/* let creator know how well we initialized */
- if (error == true || !threadkey || tmp < 0 || !worker ||
+ if (error || !threadkey || tmp < 0 || !worker ||
ifindex != req->ifindex)
req->threadStatus = THREAD_STATUS_FAIL;
else
goto cleanup;
}
- if (bootDisk == true) {
+ if (bootDisk) {
pret = PrlVmDev_GetIndex(sdkdisk, &devIndex);
prlsdkCheckRetGoto(pret, cleanup);
for (i = 0; i < def->ndisks; i++) {
bool bootDisk = false;
- if (needBoot == true &&
+ if (needBoot &&
def->disks[i]->device == VIR_DOMAIN_DISK_DEVICE_DISK) {
needBoot = false;