From e48813da4b45ced545d306e877f32c62e6b5ca76 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Fri, 31 Oct 2008 02:07:08 +0000 Subject: [PATCH] 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 --- .../MiscSystemManufacturerFunction.c | 14 +++++++------- 1 file 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; } -- 2.39.2