diff --git a/reactos/ntoskrnl/config/cmindex.c b/reactos/ntoskrnl/config/cmindex.c index 0948bd31dd4..cbb8b284cf8 100644 --- a/reactos/ntoskrnl/config/cmindex.c +++ b/reactos/ntoskrnl/config/cmindex.c @@ -752,7 +752,7 @@ CmpFindSubKeyByName(IN PHHIVE Hive, return HCELL_NIL; } - if ((Found) && (SubKey != HCELL_NIL)) + if (SubKey != HCELL_NIL) { HvReleaseCell(Hive, CellToRelease); return SubKey;