[NTVDM] GetNextFreeVDDEntry(): Remove 'Entry' redundant initialization (#2859)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Mon, 25 May 2020 21:49:47 +0000 (23:49 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 21:49:47 +0000 (23:49 +0200)
Detected by Cppcheck: redundantInitialization.
Addendum to ed874b41 (r61283).

subsystems/mvdm/ntvdm/vddsup.c

index f6a6fa9..accc241 100644 (file)
@@ -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;