From d59d74fb691667f40236edd92cb3f6f32b52c95e Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Mon, 25 May 2020 23:49:47 +0200 Subject: [PATCH] [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;