summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-18 06:01:35 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-18 06:01:35 +0000
commit3d342022a12fb9b64585f2d2b40b6fe0ad90a1ee (patch)
tree9395be9ae44108ab4220157d6914487aa5280ccc /ShellPkg
parent550340889f0ed918ad6bac174efd4d9db8df3286 (diff)
downloadedk2-platforms-3d342022a12fb9b64585f2d2b40b6fe0ad90a1ee.tar.xz
Simplify the logic to remove the use of local variable "FileInfoGuid" to avoid GCC build warning.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9445 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
index cd72cbd50a..2b63ee8269 100644
--- a/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
+++ b/ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c
@@ -46,7 +46,6 @@ FileHandleGetInfo (
IN EFI_FILE_HANDLE FileHandle
)
{
- EFI_GUID FileInfoGuid;
EFI_FILE_INFO *pFileInfo;
UINTN FileInfoSize;
EFI_STATUS Status;
@@ -59,11 +58,10 @@ FileHandleGetInfo (
//
// Get the required size to allocate
//
- FileInfoGuid = gEfiFileInfoGuid;
FileInfoSize = 0;
pFileInfo = NULL;
Status = FileHandle->GetInfo(FileHandle,
- &FileInfoGuid,
+ &gEfiFileInfoGuid,
&FileInfoSize,
pFileInfo);
//
@@ -76,7 +74,7 @@ FileHandleGetInfo (
// now get the information
//
Status = FileHandle->GetInfo(FileHandle,
- &FileInfoGuid,
+ &gEfiFileInfoGuid,
&FileInfoSize,
pFileInfo);
//
@@ -114,7 +112,6 @@ FileHandleSetInfo (
IN CONST EFI_FILE_INFO *FileInfo
)
{
- EFI_GUID FileInfoGuid;
//
// ASSERT if the FileHandle or FileInfo is NULL
@@ -122,12 +119,11 @@ FileHandleSetInfo (
ASSERT (FileHandle != NULL);
ASSERT (FileInfo != NULL);
- FileInfoGuid = gEfiFileInfoGuid;
//
// Set the info
//
return (FileHandle->SetInfo(FileHandle,
- &FileInfoGuid,
+ &gEfiFileInfoGuid,
(UINTN)FileInfo->Size,
(EFI_FILE_INFO*)FileInfo));
}