mirror of https://github.com/acidanthera/audk.git
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:
parent
fb0114a409
commit
2146160aa0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue