]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update function comment and use MdePkg Library FreePool function.
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Dec 2008 14:23:46 +0000 (14:23 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Dec 2008 14:23:46 +0000 (14:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6822 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c

index 9e82009e82e2138d2ac97282b152a43947de22a0..bfa89f1d01ba418dee0fb6d59d5d9948c3357e1d 100644 (file)
@@ -1,4 +1,7 @@
 /** @file\r
+This is an example of how a driver might export data to the HII protocol to be\r
+later utilized by the Setup Protocol\r
+\r
 Copyright (c) 2004 - 2008, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -8,15 +11,6 @@ http://opensource.org/licenses/bsd-license.php
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-  DriverSample.c\r
-\r
-Abstract:\r
-\r
-  This is an example of how a driver might export data to the HII protocol to be\r
-  later utilized by the Setup Protocol\r
-\r
-\r
 **/\r
 \r
 \r
@@ -59,7 +53,7 @@ EncodePassword (
 \r
   CopyMem (Password, Buffer, MaxSize);\r
 \r
-  gBS->FreePool (Buffer);\r
+  FreePool (Buffer);\r
   return ;\r
 }\r
 \r
@@ -129,7 +123,7 @@ ValidatePassword (
 \r
   Status = HiiLibGetString (PrivateData->HiiHandle[0], StringId, Password, &BufferSize);\r
   if (EFI_ERROR (Status)) {\r
-    gBS->FreePool (Password);\r
+    FreePool (Password);\r
     return Status;\r
   }\r
 \r
@@ -148,8 +142,8 @@ ValidatePassword (
     Status = EFI_SUCCESS;\r
   }\r
 \r
-  gBS->FreePool (Password);\r
-  gBS->FreePool (EncodedPassword);\r
+  FreePool (Password);\r
+  FreePool (EncodedPassword);\r
 \r
   return Status;\r
 }\r
@@ -225,7 +219,7 @@ SetPassword (
                NULL\r
                );\r
   }\r
-  gBS->FreePool (Configuration);\r
+  FreePool (Configuration);\r
 \r
   //\r
   // Set password\r
@@ -568,7 +562,7 @@ DriverCallback (
                  TRUE,                       // Append or replace\r
                  &UpdateData                 // Dynamic created opcodes\r
                  );\r
-      gBS->FreePool (IfrOptionList);\r
+      FreePool (IfrOptionList);\r
       IfrLibFreeUpdateData (&UpdateData);\r
       break;\r
     \r
@@ -805,7 +799,7 @@ DriverSampleInit (
                           DriverHandle[0],\r
                           &HiiHandle[0]\r
                           );\r
-  gBS->FreePool (PackageList);\r
+  FreePool (PackageList);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -836,7 +830,7 @@ DriverSampleInit (
                           DriverHandle[1],\r
                           &HiiHandle[1]\r
                           );\r
-  gBS->FreePool (PackageList);\r
+  FreePool (PackageList);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r