Fix the following error from gcc:
Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c: In function ?BdsLockFv?:
Vlv2TbltDevicePkg/Library/PlatformBdsLib/BdsPlatform.c:2170:31: error: variable ?Data? set but not used [-Werror=unused-but-set-variable]
Cc: David Wei <david.wei@intel.com>
Cc: "Wu, Hao A" <hao.a.wu@intel.com>
Cc: "Lu, ShifeiX A" <shifeix.a.lu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: David Wei <david.wei@intel.com>
EFI_FV_BLOCK_MAP_ENTRY *BlockMap;\r
EFI_FIRMWARE_VOLUME_HEADER *FvHeader;\r
EFI_PHYSICAL_ADDRESS BaseAddress;\r
- UINT8 Data;\r
UINT32 BlockLength;\r
UINTN Index;\r
\r
while ((BlockMap->NumBlocks != 0) && (BlockMap->Length != 0)) {\r
BlockLength = BlockMap->Length;\r
for (Index = 0; Index < BlockMap->NumBlocks; Index++) {\r
- Data = MmioOr8 ((UINTN) BaseAddress, 0x03);\r
+ MmioOr8 ((UINTN) BaseAddress, 0x03);\r
BaseAddress += BlockLength;\r
}\r
BlockMap++;\r