From 2146160aa02f3e3b3e1567fcc17fe61021b4c02c Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Fri, 23 Dec 2022 21:10:16 +0600 Subject: [PATCH] MdeModulePkg/SmbiosMeasurementDxe: Removes unused local variable Removes unused local variable Size in GetSmbiosStringById Signed-off-by: Savva Mitrofanov --- .../Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c index d61edc846b..f9980e6be3 100644 --- a/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c +++ b/MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.c @@ -218,14 +218,12 @@ GetSmbiosStringById ( OUT UINTN *StringLen ) { - UINTN Size; UINTN StrLen; CHAR8 *CharInStr; UINTN StringsNumber; CHAR8 *String; CharInStr = (CHAR8 *)Head + Head->Length; - Size = Head->Length; StringsNumber = 0; StrLen = 0; // @@ -234,7 +232,6 @@ GetSmbiosStringById ( String = NULL; while (*CharInStr != 0 || *(CharInStr+1) != 0) { if (*CharInStr == 0) { - Size += 1; CharInStr++; } @@ -256,7 +253,6 @@ GetSmbiosStringById ( // forward the pointer // CharInStr += StrLen; - Size += StrLen; StringsNumber += 1; if (StringsNumber == StringId) { break;