summaryrefslogtreecommitdiffstats
path: root/FatPkg/EnhancedFatDxe/ReadWrite.c
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-12-08 13:18:08 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-12-09 11:02:08 +0800
commitc1680e885d8a4bc938a0ed4db5370d7e974c1849 (patch)
tree23bf6c7735fb4e57c8a46afc41d12c7c69435df3 /FatPkg/EnhancedFatDxe/ReadWrite.c
parent5d7cee9d3c3e15fd6ad87910d96c87e5aec12360 (diff)
downloadedk2-c1680e885d8a4bc938a0ed4db5370d7e974c1849.tar.gz
edk2-c1680e885d8a4bc938a0ed4db5370d7e974c1849.tar.bz2
edk2-c1680e885d8a4bc938a0ed4db5370d7e974c1849.zip
FatPkg/EnhancedFatDxe: Make the variable name follow rule
Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Diffstat (limited to 'FatPkg/EnhancedFatDxe/ReadWrite.c')
-rw-r--r--FatPkg/EnhancedFatDxe/ReadWrite.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/FatPkg/EnhancedFatDxe/ReadWrite.c b/FatPkg/EnhancedFatDxe/ReadWrite.c
index 9afb6bff89..81676cd215 100644
--- a/FatPkg/EnhancedFatDxe/ReadWrite.c
+++ b/FatPkg/EnhancedFatDxe/ReadWrite.c
@@ -253,7 +253,7 @@ Returns:
//
// Write to a directory is unsupported
//
- if ((OFile->ODir != NULL) && (IoMode == WRITE_DATA)) {
+ if ((OFile->ODir != NULL) && (IoMode == WriteData)) {
return EFI_UNSUPPORTED;
}
@@ -261,7 +261,7 @@ Returns:
return EFI_DEVICE_ERROR;
}
- if (IoMode == READ_DATA) {
+ if (IoMode == ReadData) {
//
// If position is at EOF, then return device error
//
@@ -305,7 +305,7 @@ Returns:
//
// Read a directory is supported
//
- ASSERT (IoMode == READ_DATA);
+ ASSERT (IoMode == ReadData);
Status = FatIFileReadDir (IFile, BufferSize, Buffer);
OFile = NULL;
} else {
@@ -317,7 +317,7 @@ Returns:
//
// The position goes beyond the end of file
//
- if (IoMode == READ_DATA) {
+ if (IoMode == ReadData) {
//
// Adjust the actual size read
//
@@ -401,7 +401,7 @@ Returns:
--*/
{
- return FatIFileAccess (FHand, READ_DATA, BufferSize, Buffer, NULL);
+ return FatIFileAccess (FHand, ReadData, BufferSize, Buffer, NULL);
}
EFI_STATUS
@@ -430,7 +430,7 @@ Returns:
--*/
{
- return FatIFileAccess (FHand, READ_DATA, &Token->BufferSize, Token->Buffer, Token);
+ return FatIFileAccess (FHand, ReadData, &Token->BufferSize, Token->Buffer, Token);
}
EFI_STATUS
@@ -464,7 +464,7 @@ Returns:
--*/
{
- return FatIFileAccess (FHand, WRITE_DATA, BufferSize, Buffer, NULL);
+ return FatIFileAccess (FHand, WriteData, BufferSize, Buffer, NULL);
}
EFI_STATUS
@@ -493,7 +493,7 @@ Returns:
--*/
{
- return FatIFileAccess (FHand, WRITE_DATA, &Token->BufferSize, Token->Buffer, Token);
+ return FatIFileAccess (FHand, WriteData, &Token->BufferSize, Token->Buffer, Token);
}
EFI_STATUS
@@ -563,7 +563,7 @@ Returns:
Position += Len;
UserBuffer += Len;
BufferSize -= Len;
- if (IoMode == WRITE_DATA) {
+ if (IoMode == WriteData) {
OFile->Dirty = TRUE;
OFile->Archive = TRUE;
}
@@ -664,7 +664,7 @@ Returns:
do {
WriteSize = AppendedSize > BufferSize ? BufferSize : (UINTN) AppendedSize;
AppendedSize -= WriteSize;
- Status = FatAccessOFile (OFile, WRITE_DATA, WritePos, &WriteSize, ZeroBuffer, NULL);
+ Status = FatAccessOFile (OFile, WriteData, WritePos, &WriteSize, ZeroBuffer, NULL);
if (EFI_ERROR (Status)) {
break;
}