https://git.reactos.org/?p=reactos.git;a=commitdiff;h=53ac8dae4d3b43d43f965…
commit 53ac8dae4d3b43d43f965131417afd70ebf914c5
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Oct 10 09:33:08 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Mon Oct 10 09:33:08 2022 +0900
[NTOSKRNL] Write 'if (var) ASSERT(FALSE);' as 'ASSERT(!var);'
Based on Serge Gautherie's patch.
CORE-13216
---
ntoskrnl/io/iomgr/driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/io/iomgr/driver.c b/ntoskrnl/io/iomgr/driver.c
index 3925477bbd3..495cc83a892 100644
--- a/ntoskrnl/io/iomgr/driver.c
+++ b/ntoskrnl/io/iomgr/driver.c
@@ -1022,13 +1022,13 @@ IopInitializeBootDrivers(VOID)
/* Get highest group order index */
IopGroupIndex = PpInitGetGroupOrderIndex(NULL);
- if (IopGroupIndex == 0xFFFF) ASSERT(FALSE);
+ ASSERT(IopGroupIndex != 0xFFFF);
/* Allocate the group table */
IopGroupTable = ExAllocatePoolWithTag(PagedPool,
IopGroupIndex * sizeof(LIST_ENTRY),
TAG_IO);
- if (IopGroupTable == NULL) ASSERT(FALSE);
+ ASSERT(IopGroupTable != NULL);
/* Initialize the group table lists */
for (i = 0; i < IopGroupIndex; i++) InitializeListHead(&IopGroupTable[i]);