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 OUT UINTN *StringLen
) )
{ {
UINTN Size;
UINTN StrLen; UINTN StrLen;
CHAR8 *CharInStr; CHAR8 *CharInStr;
UINTN StringsNumber; UINTN StringsNumber;
CHAR8 *String; CHAR8 *String;
CharInStr = (CHAR8 *)Head + Head->Length; CharInStr = (CHAR8 *)Head + Head->Length;
Size = Head->Length;
StringsNumber = 0; StringsNumber = 0;
StrLen = 0; StrLen = 0;
// //
@ -234,7 +232,6 @@ GetSmbiosStringById (
String = NULL; String = NULL;
while (*CharInStr != 0 || *(CharInStr+1) != 0) { while (*CharInStr != 0 || *(CharInStr+1) != 0) {
if (*CharInStr == 0) { if (*CharInStr == 0) {
Size += 1;
CharInStr++; CharInStr++;
} }
@ -256,7 +253,6 @@ GetSmbiosStringById (
// forward the pointer // forward the pointer
// //
CharInStr += StrLen; CharInStr += StrLen;
Size += StrLen;
StringsNumber += 1; StringsNumber += 1;
if (StringsNumber == StringId) { if (StringsNumber == StringId) {
break; break;