Index: bus/acpi/pnp.c =================================================================== --- bus/acpi/pnp.c (revision 65379) +++ bus/acpi/pnp.c (working copy) @@ -375,7 +375,7 @@ // set the event because we won't be waiting on it. // This optimization avoids grabbing the dispatcher lock and improves perf. // - if (Irp->PendingReturned == TRUE) { + if (Irp->PendingReturned) { KeSetEvent ((PKEVENT) Context, IO_NO_INCREMENT, FALSE); } Index: bus/pcix/enum.c =================================================================== --- bus/pcix/enum.c (revision 65379) +++ bus/pcix/enum.c (working copy) @@ -161,7 +161,7 @@ /* Shouldn't be a base resource, this is a drain */ ASSERT(BaseResource == NULL); DrainPartial = Partial->u.DevicePrivate.Data[1]; - ASSERT(DrainPartial == TRUE); + ASSERT(DrainPartial != FALSE); break; } break; Index: filesystems/cdfs/dirctl.c =================================================================== --- filesystems/cdfs/dirctl.c (revision 65379) +++ filesystems/cdfs/dirctl.c (working copy) @@ -203,7 +203,7 @@ IsRoot = TRUE; } - if (IsRoot == TRUE) + if (IsRoot) { StreamOffset.QuadPart = (LONGLONG)DeviceExt->CdInfo.RootStart * (LONGLONG)BLOCKSIZE; DirSize = DeviceExt->CdInfo.RootSize; Index: filesystems/ext2/src/write.c =================================================================== --- filesystems/ext2/src/write.c (revision 65379) +++ filesystems/ext2/src/write.c (working copy) @@ -638,7 +638,7 @@ // Zero the blocks out... // This routine can be used even if caching has not been initiated... // - if( ZeroOut == TRUE && StartOffsetForZeroing.QuadPart != EndOffsetForZeroing.QuadPart ) + if( ZeroOut && StartOffsetForZeroing.QuadPart != EndOffsetForZeroing.QuadPart ) { CcZeroData( PtrFileObject, &StartOffsetForZeroing, Index: filters/mountmgr/notify.c =================================================================== --- filters/mountmgr/notify.c (revision 65379) +++ filters/mountmgr/notify.c (working copy) @@ -251,7 +251,7 @@ { if (InterlockedCompareExchange(&(DeviceInformation->MountState), FALSE, - TRUE) == TRUE) + TRUE)) { InterlockedDecrement(&(DeviceInformation->MountState)); } Index: hid/hidclass/hidclass.c =================================================================== --- hid/hidclass/hidclass.c (revision 65379) +++ hid/hidclass/hidclass.c (working copy) @@ -1039,7 +1039,7 @@ // // FIXME: support PDO // - ASSERT(CommonDeviceExtension->IsFDO == TRUE); + ASSERT(CommonDeviceExtension->IsFDO != FALSE); // // skip current irp stack location Index: ksfilter/ks/misc.c =================================================================== --- ksfilter/ks/misc.c (revision 65379) +++ ksfilter/ks/misc.c (working copy) @@ -51,7 +51,7 @@ IN PIRP Irp, IN PVOID Context) { - if (Irp->PendingReturned == TRUE) + if (Irp->PendingReturned) { KeSetEvent ((PKEVENT) Context, IO_NO_INCREMENT, FALSE); } Index: multimedia/audio/mpu401_nt4/mpu401.c =================================================================== --- multimedia/audio/mpu401_nt4/mpu401.c (revision 65379) +++ multimedia/audio/mpu401_nt4/mpu401.c (working copy) @@ -328,7 +328,7 @@ } else if (BeepParam->Duration == (DWORD)-1) { - if (DeviceExtension->BeepOn == TRUE) + if (DeviceExtension->BeepOn) { HalMakeBeep(0); DeviceExtension->BeepOn = FALSE; Index: multimedia/audio/sndblst.old/sndblst.c =================================================================== --- multimedia/audio/sndblst.old/sndblst.c (revision 65379) +++ multimedia/audio/sndblst.old/sndblst.c (working copy) @@ -387,7 +387,7 @@ } else if (BeepParam->Duration == (DWORD)-1) { - if (DeviceExtension->BeepOn == TRUE) + if (DeviceExtension->BeepOn) { HalMakeBeep(0); DeviceExtension->BeepOn = FALSE; Index: storage/class/disk_new/disk.c =================================================================== --- storage/class/disk_new/disk.c (revision 65379) +++ storage/class/disk_new/disk.c (working copy) @@ -720,7 +720,7 @@ ASSERT( status != STATUS_INSUFFICIENT_RESOURCES ); - } else if((commonExtension->IsFdo == TRUE) && (residualBytes == 0)) { + } else if((commonExtension->IsFdo) && (residualBytes == 0)) { // // This failed because we think the physical disk is too small. @@ -3641,7 +3641,7 @@ status = DiskGetCacheInformation(fdoExtension, &cacheInfo); - if (NT_SUCCESS(status) && (cacheInfo.WriteCacheEnabled == TRUE)) { + if (NT_SUCCESS(status) && (cacheInfo.WriteCacheEnabled)) { cacheInfo.WriteCacheEnabled = FALSE; @@ -4797,7 +4797,7 @@ // // Determine the search direction and setup the loop // - if(SearchTopToBottom == TRUE) { + if(SearchTopToBottom) { startIndex = 0; stopIndex = LayoutInfo->PartitionCount; Index: storage/class/disk_new/part.c =================================================================== --- storage/class/disk_new/part.c (revision 65379) +++ storage/class/disk_new/part.c (working copy) @@ -93,7 +93,7 @@ // If the cached partition table is present then return a copy of it. // - if(diskData->CachedPartitionTableValid == TRUE) { + if(diskData->CachedPartitionTableValid) { ULONG partitionNumber; PDRIVE_LAYOUT_INFORMATION_EX layout = diskData->CachedPartitionTable; Index: storage/class/disk_new/pnp.c =================================================================== --- storage/class/disk_new/pnp.c (revision 65379) +++ storage/class/disk_new/pnp.c (working copy) @@ -1314,7 +1314,7 @@ if (NT_SUCCESS(status)) { - if (cacheInfo.WriteCacheEnabled == TRUE) + if (cacheInfo.WriteCacheEnabled) { if (writeCacheOverride == DiskWriteCacheDisable) { Index: storage/classpnp/autorun.c =================================================================== --- storage/classpnp/autorun.c (revision 65379) +++ storage/classpnp/autorun.c (working copy) @@ -750,7 +750,7 @@ Executive, KernelMode, FALSE, - ((Wait == TRUE) ? NULL : &zero)); + ((Wait) ? NULL : &zero)); if(status == STATUS_TIMEOUT) { @@ -1757,7 +1757,7 @@ adapterDescriptor = FdoExtension->AdapterDescriptor; atapiResets = 0; retryImmediately = TRUE; - for (i = 0; i < 16 && retryImmediately == TRUE; i++) { + for (i = 0; i < 16 && retryImmediately; i++) { irp = ClasspPrepareMcnIrp(FdoExtension, Info, TRUE); if (irp == NULL) { Index: storage/classpnp/class.c =================================================================== --- storage/classpnp/class.c (revision 65379) +++ storage/classpnp/class.c (working copy) @@ -317,7 +317,7 @@ DriverObject->DriverStartIo = ClasspStartIo; } - if ((InitializationData->ClassUnload) && (ClassPnpAllowUnload == TRUE)) { + if ((InitializationData->ClassUnload) && (ClassPnpAllowUnload)) { DriverObject->DriverUnload = ClassUnload; } else { DriverObject->DriverUnload = NULL; @@ -1061,7 +1061,7 @@ // cleanup the changes done above // - if (setPagable == TRUE) { + if (setPagable) { DebugPrint((2, "ClassDispatchPnp (%p,%p): Unsetting " "PAGABLE bit due to irp failure\n", DeviceObject, Irp)); Index: storage/classpnp/obsolete.c =================================================================== --- storage/classpnp/obsolete.c (revision 65379) +++ storage/classpnp/obsolete.c (working copy) @@ -813,7 +813,7 @@ // current position then insert this entry into the current sweep. // - if((LowPriority != TRUE) && (BlockNumber > List->BlockNumber)) { + if( (!LowPriority) && (BlockNumber > List->BlockNumber) ) { ClasspInsertCScanList(&(List->CurrentSweep), entry); } else { ClasspInsertCScanList(&(List->NextSweep), entry); @@ -972,7 +972,7 @@ VOID NTAPI ClasspStartNextSweep(PCSCAN_LIST List) { - ASSERT(IsListEmpty(&(List->CurrentSweep)) == TRUE); + ASSERT(IsListEmpty(&(List->CurrentSweep)) != FALSE); // // If the next sweep is empty then there's nothing to do. Index: storage/classpnp/power.c =================================================================== --- storage/classpnp/power.c (revision 65379) +++ storage/classpnp/power.c (working copy) @@ -189,7 +189,7 @@ // request unless we can ignore failed locks // - if((context->Options.LockQueue == TRUE) && + if((context->Options.LockQueue) && (!NT_SUCCESS(Irp->IoStatus.Status))) { DebugPrint((1, "(%p)\tIrp status was %lx\n", @@ -359,7 +359,7 @@ &status, &context->RetryInterval); - if((retry == TRUE) && (context->RetryCount-- != 0)) { + if((retry) && (context->RetryCount-- != 0)) { DebugPrint((1, "(%p)\tRetrying failed request\n", Irp)); @@ -537,7 +537,7 @@ ASSERT(!TEST_FLAG(context->Srb.SrbFlags, SRB_FLAGS_FREE_SENSE_BUFFER)); ASSERT(!TEST_FLAG(context->Srb.SrbFlags, SRB_FLAGS_PORT_DRIVER_ALLOCSENSE)); - ASSERT(context->Options.PowerDown == TRUE); + ASSERT(context->Options.PowerDown != FALSE); ASSERT(context->Options.HandleSpinDown); if(Irp->PendingReturned) { @@ -554,7 +554,7 @@ DebugPrint((1, "(%p)\tPreviously sent power lock\n", Irp)); - if((context->Options.LockQueue == TRUE) && + if((context->Options.LockQueue) && (!NT_SUCCESS(Irp->IoStatus.Status))) { DebugPrint((1, "(%p)\tIrp status was %lx\n", @@ -703,7 +703,7 @@ &status, &context->RetryInterval); - if((retry == TRUE) && (context->RetryCount-- != 0)) { + if((retry) && (context->RetryCount-- != 0)) { DebugPrint((1, "(%p)\tRetrying failed request\n", Irp)); @@ -808,7 +808,7 @@ &status, &context->RetryInterval); - if((retry == TRUE) && (context->RetryCount-- != 0)) { + if((retry) && (context->RetryCount-- != 0)) { DebugPrint((1, "(%p)\tRetrying failed request\n", Irp)); Index: storage/ide/atapi/atapi.c =================================================================== --- storage/ide/atapi/atapi.c (revision 65379) +++ storage/ide/atapi/atapi.c (working copy) @@ -2824,7 +2824,7 @@ } } - if (*Again == TRUE) { + if (*Again) { for (channel = 0; channel < 2; channel++) { @@ -5677,7 +5677,7 @@ UCHAR statusByte,errorByte; - if (EnableMSN == TRUE){ + if (EnableMSN){ // // If supported enable Media Status Notification support @@ -5712,7 +5712,7 @@ } } - } else { // end if EnableMSN == TRUE + } else { // end if EnableMSN // // disable if previously enabled Index: storage/ide/uniata/id_ata.cpp =================================================================== --- storage/ide/uniata/id_ata.cpp (revision 65379) +++ storage/ide/uniata/id_ata.cpp (working copy) @@ -8186,7 +8186,7 @@ statusByte = WaitOnBaseBusy(chan); //SelectDrive(chan, DeviceNumber); - if (cdb->MEDIA_REMOVAL.Prevent == TRUE) { + if (cdb->MEDIA_REMOVAL.Prevent) { //AtapiWritePort1(chan, IDX_IO1_o_Command,IDE_COMMAND_DOOR_LOCK); statusByte = AtaCommand(deviceExtension, DeviceNumber, lChannel, IDE_COMMAND_DOOR_LOCK, 0, 0, 0, 0, 0, ATA_IMMEDIATE); } else { @@ -8473,7 +8473,7 @@ chan = &(deviceExtension->chan[lChannel]); SelectDrive(chan, DeviceNumber); - if (EnableMSN == TRUE){ + if (EnableMSN){ // If supported enable Media Status Notification support if ((chan->lun[DeviceNumber]->DeviceFlags & DFLAGS_REMOVABLE_DRIVE)) { @@ -8499,7 +8499,7 @@ } } - } else { // end if EnableMSN == TRUE + } else { // end if EnableMSN // disable if previously enabled if ((chan->lun[DeviceNumber]->DeviceFlags & DFLAGS_MEDIA_STATUS_ENABLED)) { Index: usb/usbehci/hardware.cpp =================================================================== --- usb/usbehci/hardware.cpp (revision 65379) +++ usb/usbehci/hardware.cpp (working copy) @@ -1363,7 +1363,7 @@ // // controller has acknowledged, assert we rang the bell // - PC_ASSERT(This->m_DoorBellRingInProgress == TRUE); + PC_ASSERT(This->m_DoorBellRingInProgress != FALSE); // // now notify IUSBQueue that it can free completed requests Index: usb/usbehci/usb_queue.cpp =================================================================== --- usb/usbehci/usb_queue.cpp (revision 65379) +++ usb/usbehci/usb_queue.cpp (working copy) @@ -499,7 +499,7 @@ // // head queue head must be halted // - //PC_ASSERT(HeadQueueHead->Token.Bits.Halted == TRUE); + //PC_ASSERT(HeadQueueHead->Token.Bits.Halted != FALSE); } // Index: usb/usbohci/usb_request.cpp =================================================================== --- usb/usbohci/usb_request.cpp (revision 65379) +++ usb/usbohci/usb_request.cpp (working copy) @@ -1485,7 +1485,7 @@ // // setup pid direction // - DataDescriptor->Flags |= InternalGetPidDirection() == TRUE ? OHCI_TD_DIRECTION_PID_IN : OHCI_TD_DIRECTION_PID_OUT; + DataDescriptor->Flags |= InternalGetPidDirection() ? OHCI_TD_DIRECTION_PID_IN : OHCI_TD_DIRECTION_PID_OUT; // // use short packets @@ -1501,7 +1501,7 @@ // // flip status pid direction // - StatusDescriptor->Flags |= InternalGetPidDirection() == TRUE ? OHCI_TD_DIRECTION_PID_OUT : OHCI_TD_DIRECTION_PID_IN; + StatusDescriptor->Flags |= InternalGetPidDirection() ? OHCI_TD_DIRECTION_PID_OUT : OHCI_TD_DIRECTION_PID_IN; // // link setup descriptor to data descriptor Index: usb/usbstor/disk.c =================================================================== --- usb/usbstor/disk.c (revision 65379) +++ usb/usbstor/disk.c (working copy) @@ -113,7 +113,7 @@ // // sanity check // - ASSERT(PDODeviceExtension->Claimed == TRUE); + ASSERT(PDODeviceExtension->Claimed != FALSE); // // release claim Index: wdm/audio/backpln/portcls/irp.cpp =================================================================== --- wdm/audio/backpln/portcls/irp.cpp (revision 65379) +++ wdm/audio/backpln/portcls/irp.cpp (working copy) @@ -504,7 +504,7 @@ IN PIRP Irp, IN PVOID Context) { - if (Irp->PendingReturned == TRUE) + if (Irp->PendingReturned) { KeSetEvent ((PKEVENT) Context, IO_NO_INCREMENT, FALSE); } Index: wdm/audio/backpln/portcls/irpstream.cpp =================================================================== --- wdm/audio/backpln/portcls/irpstream.cpp (revision 65379) +++ wdm/audio/backpln/portcls/irpstream.cpp (working copy) @@ -638,7 +638,7 @@ for(Index = 0; Index < StreamData->StreamHeaderIndex; Index++) { // check if it is the same tag - if (StreamData->Tags[Index].Tag == Tag && StreamData->Tags[Index].Used == TRUE) + if (StreamData->Tags[Index].Tag == Tag && StreamData->Tags[Index].Used) { // mark mapping as released StreamData->Tags[Index].Tag = NULL; @@ -671,7 +671,7 @@ for(Index = 0; Index < StreamData->StreamHeaderCount; Index++) { if (StreamData->Tags[Index].Tag == Tag && - StreamData->Tags[Index].Used == TRUE) + StreamData->Tags[Index].Used) { // mark mapping as released StreamData->Tags[Index].Tag = NULL; Index: wdm/audio/backpln/portcls/pin_wavecyclic.cpp =================================================================== --- wdm/audio/backpln/portcls/pin_wavecyclic.cpp (revision 65379) +++ wdm/audio/backpln/portcls/pin_wavecyclic.cpp (working copy) @@ -646,7 +646,7 @@ // get event entry context Context = (PLOOPEDSTREAMING_EVENT_CONTEXT)(EventEntry + 1); - if (Context->bLoopedStreaming == TRUE) + if (Context->bLoopedStreaming) { if (NewOffset > OldOffset) { Index: wdm/audio/legacy/stream/helper.c =================================================================== --- wdm/audio/legacy/stream/helper.c (revision 65379) +++ wdm/audio/legacy/stream/helper.c (working copy) @@ -16,7 +16,7 @@ IN PIRP Irp, IN PVOID Context) { - if (Irp->PendingReturned == TRUE) + if (Irp->PendingReturned) { KeSetEvent ((PKEVENT) Context, IO_NO_INCREMENT, FALSE); }