summaryrefslogtreecommitdiffstats
path: root/Nt32Pkg/MiscSubClassPlatformDxe
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:07:08 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-10-31 02:07:08 +0000
commite48813da4b45ced545d306e877f32c62e6b5ca76 (patch)
tree84c185dddbcad23feb6fccde75b8ebc41d1b5e18 /Nt32Pkg/MiscSubClassPlatformDxe
parent19b15d6310e68da4656d04c6549ad615297c785d (diff)
downloadedk2-e48813da4b45ced545d306e877f32c62e6b5ca76.tar.gz
edk2-e48813da4b45ced545d306e877f32c62e6b5ca76.tar.bz2
edk2-e48813da4b45ced545d306e877f32c62e6b5ca76.zip
Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h. It is for consistency.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6314 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/MiscSubClassPlatformDxe')
-rw-r--r--Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c
index fffaa364e9..39c12cf482 100644
--- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c
+++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c
@@ -22,6 +22,8 @@ Abstract:
#include "MiscSubclassDriver.h"
+BOOLEAN mDone = FALSE;
+
//
//
//
@@ -69,8 +71,6 @@ Returns:
LogRecordData was NULL.
--*/
{
- STATIC BOOLEAN Done = FALSE;
-
//
// First check for invalid parameters.
//
@@ -86,7 +86,7 @@ Returns:
//
// Is this the first time through this function?
//
- if (!Done) {
+ if (!mDone) {
//
// Yes, this is the first time. Inspect/Change the contents of the
// RecordData structure.
@@ -100,19 +100,19 @@ Returns:
//
// ((EFI_MISC_SYSTEM_MANUFACTURER_DATA *)RecordData)->SystemWakeupType = %%TBD
//
- // Set Done flag to TRUE for next pass through this function.
+ // Set mDone flag to TRUE for next pass through this function.
// Set *LogRecordData to TRUE so data will get logged to Data Hub.
//
- Done = TRUE;
+ mDone = TRUE;
*LogRecordData = TRUE;
} else {
//
- // No, this is the second time. Reset the state of the Done flag
+ // No, this is the second time. Reset the state of the mDone flag
// to FALSE and tell the data logger that there is no more data
// to be logged for this record type. If any memory allocations
// were made by earlier passes, they must be released now.
//
- Done = FALSE;
+ mDone = FALSE;
*LogRecordData = FALSE;
}