MdeModulePkg/SmbiosMeasurementDxe: Removes unused local variable

Removes unused local variable Size in GetSmbiosStringById

Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
Savva Mitrofanov 2022-12-23 21:10:16 +06:00 committed by Mikhail Krichanov
parent fb0114a409
commit 2146160aa0
1 changed files with 0 additions and 4 deletions

View File

@ -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;