https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d59d74fb691667f40236edd92cb3f6f32b52c95e

commit d59d74fb691667f40236edd92cb3f6f32b52c95e
Author:     Serge Gautherie <[email protected]>
AuthorDate: Mon May 25 23:49:47 2020 +0200
Commit:     GitHub <[email protected]>
CommitDate: Mon May 25 23:49:47 2020 +0200

    [NTVDM] GetNextFreeVDDEntry(): Remove 'Entry' redundant initialization 
(#2859)
    
    Detected by Cppcheck: redundantInitialization.
    Addendum to ed874b41 (r61283).
---
 subsystems/mvdm/ntvdm/vddsup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subsystems/mvdm/ntvdm/vddsup.c b/subsystems/mvdm/ntvdm/vddsup.c
index f6a6fa9afa5..accc241ff2e 100644
--- a/subsystems/mvdm/ntvdm/vddsup.c
+++ b/subsystems/mvdm/ntvdm/vddsup.c
@@ -59,7 +59,7 @@ static LIST_ENTRY VddUserHooksList = {&VddUserHooksList, 
&VddUserHooksList};
 
 static USHORT GetNextFreeVDDEntry(VOID)
 {
-    USHORT Entry = MAX_VDD_MODULES;
+    USHORT Entry;
     for (Entry = 0; Entry < ARRAYSIZE(VDDList); ++Entry)
     {
         if (VDDList[Entry].hDll == NULL) break;

Reply via email to