From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Mon, 25 May 2020 21:49:47 +0000 (+0200) Subject: [NTVDM] GetNextFreeVDDEntry(): Remove 'Entry' redundant initialization (#2859) X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d59d74fb691667f40236edd92cb3f6f32b52c95e [NTVDM] GetNextFreeVDDEntry(): Remove 'Entry' redundant initialization (#2859) Detected by Cppcheck: redundantInitialization. Addendum to ed874b41 (r61283). --- 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;