feat: fix Klocwork issue (#1947)

Fix the issue - Uninitialized Variable ResetVectorTime

Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
Guo Dong 2023-06-29 11:45:42 -07:00 committed by GitHub
parent 1740ead7a2
commit 2b8ca86087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ UpdateFpdtSblTable (
}
// Grab relevant performance metrics
ResetVectorTime = 0;
for (PerfIdx = 0; PerfIdx < MAX_TS_NUM; PerfIdx++) {
Id = (RShiftU64 (PerfData->TimeStamp[PerfIdx], 48)) & 0xFFFF;
switch (Id) {