EFI_FVB_ATTRIBUTES_2 Attributes;\r
UINTN LbaAddress;\r
UINTN LbaLength;\r
- EFI_FW_VOL_INSTANCE *FwhInstance;\r
EFI_STATUS Status;\r
EFI_STATUS Status1;\r
\r
- FwhInstance = GetFvbInstance (Instance);\r
-\r
if ( (NumBytes == NULL) || (Buffer == NULL)) {\r
return (EFI_INVALID_PARAMETER);\r
}\r
{\r
EFI_FVB_ATTRIBUTES_2 Attributes;\r
UINTN LbaAddress;\r
- EFI_FW_VOL_INSTANCE *FwhInstance;\r
UINTN LbaLength;\r
EFI_STATUS Status;\r
\r
- //\r
- // Find the right instance of the FVB private data.\r
- //\r
- FwhInstance = GetFvbInstance (Instance);\r
-\r
//\r
// Check if the FV is write enabled.\r
//\r
UINTN TmpHeaderLength;\r
UINTN Idx;\r
UINT32 MaxLbaSize;\r
- BOOLEAN FvHeaderValid;\r
\r
//\r
// Calculate the total size for all firmware volume block instances.\r
FwVolHeader = (EFI_FIRMWARE_VOLUME_HEADER *) (UINTN) BaseAddress;\r
\r
if (!IsFvHeaderValid (BaseAddress, FwVolHeader)) {\r
- FvHeaderValid = FALSE;\r
//\r
// If not valid, get FvbInfo from the information carried in\r
// FVB driver.\r