summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:08:52 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:45 +0800
commitd1102dba7210b95e41d06c2338a22ba6af248645 (patch)
tree8b4af076b5d6f2aa7f35563d4defcca4d4bfdd87 /MdeModulePkg/Core/Dxe/FwVol/FwVol.c
parentca79bab7af4770c5eb578f6d495af01705aedb79 (diff)
downloadedk2-d1102dba7210b95e41d06c2338a22ba6af248645.zip
edk2-d1102dba7210b95e41d06c2338a22ba6af248645.tar.gz
edk2-d1102dba7210b95e41d06c2338a22ba6af248645.tar.bz2
MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Dxe/FwVol/FwVol.c')
-rw-r--r--MdeModulePkg/Core/Dxe/FwVol/FwVol.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
index 2f5867b..93ddcc3 100644
--- a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
@@ -3,7 +3,7 @@
Layers on top of Firmware Block protocol to produce a file abstraction
of FV based files.
-Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -34,8 +34,8 @@ FV_DEVICE mFvDevice = {
FvReadFile,
FvReadFileSection,
FvWriteFile,
- FvGetNextFile,
- sizeof (UINTN),
+ FvGetNextFile,
+ sizeof (UINTN),
NULL,
FvGetVolumeInfo,
FvSetVolumeInfo
@@ -56,7 +56,7 @@ FV_DEVICE mFvDevice = {
// FFS helper functions
//
/**
- Read data from Firmware Block by FVB protocol Read.
+ Read data from Firmware Block by FVB protocol Read.
The data may cross the multi block ranges.
@param Fvb The FW_VOL_BLOCK_PROTOCOL instance from which to read data.
@@ -86,7 +86,7 @@ ReadFvbData (
UINTN BlockIndex;
UINTN ReadDataSize;
EFI_STATUS Status;
-
+
//
// Try read data in current block
//
@@ -102,7 +102,7 @@ ReadFvbData (
//
return Status;
}
-
+
//
// Data crosses the blocks, read data from next block
//
@@ -118,7 +118,7 @@ ReadFvbData (
//
// Read data from the crossing blocks
//
- BlockIndex = 0;
+ BlockIndex = 0;
while (BlockIndex < NumberOfBlocks && DataSize >= BlockSize) {
Status = Fvb->Read (Fvb, *StartLba + BlockIndex, 0, &BlockSize, Data);
if (EFI_ERROR (Status)) {
@@ -128,20 +128,20 @@ ReadFvbData (
DataSize -= BlockSize;
BlockIndex ++;
}
-
+
//
// Data doesn't exceed the current block range.
//
if (DataSize < BlockSize) {
break;
}
-
+
//
// Data must be got from the next block range.
//
*StartLba += NumberOfBlocks;
}
-
+
//
// read the remaining data
//
@@ -151,7 +151,7 @@ ReadFvbData (
return Status;
}
}
-
+
//
// Update Lba and Offset used by the following read.
//
@@ -189,7 +189,7 @@ GetFwVolHeader (
EFI_LBA StartLba;
UINTN Offset;
UINT8 *Buffer;
-
+
//
// Read the standard FV header
//
@@ -418,9 +418,9 @@ FvCheck (
HeaderSize = 0;
}
}
-
+
//
- // read the FV data
+ // read the FV data
//
for (; Index < BlockMap->NumBlocks; Index ++) {
Status = Fvb->Read (Fvb,
@@ -715,7 +715,7 @@ NotifyFwVolBlock (
// Inherit the authentication status from FVB.
//
FvDevice->AuthenticationStatus = GetFvbAuthenticationStatus (Fvb);
-
+
if (!EFI_ERROR (FvCheck (FvDevice))) {
//
// Install an New FV protocol on the existing handle