diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 14:23:46 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-03 14:23:46 +0000 |
commit | 53cf48e083930e279cbd8e12fdd923b7cbd65a9a (patch) | |
tree | 30c1e22f88f12461e6087581245020a9e0ade440 /MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | |
parent | 53dff89953161f6b7e266b8089bae508c5f71a4e (diff) | |
download | edk2-platforms-53cf48e083930e279cbd8e12fdd923b7cbd65a9a.tar.xz |
Update function comment and use MdePkg Library FreePool function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6822 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c')
-rw-r--r-- | MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c index 9e82009e82..bfa89f1d01 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c +++ b/MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c @@ -1,4 +1,7 @@ /** @file
+This is an example of how a driver might export data to the HII protocol to be
+later utilized by the Setup Protocol
+
Copyright (c) 2004 - 2008, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -8,15 +11,6 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-Module Name:
- DriverSample.c
-
-Abstract:
-
- This is an example of how a driver might export data to the HII protocol to be
- later utilized by the Setup Protocol
-
-
**/
@@ -59,7 +53,7 @@ EncodePassword ( CopyMem (Password, Buffer, MaxSize);
- gBS->FreePool (Buffer);
+ FreePool (Buffer);
return ;
}
@@ -129,7 +123,7 @@ ValidatePassword ( Status = HiiLibGetString (PrivateData->HiiHandle[0], StringId, Password, &BufferSize);
if (EFI_ERROR (Status)) {
- gBS->FreePool (Password);
+ FreePool (Password);
return Status;
}
@@ -148,8 +142,8 @@ ValidatePassword ( Status = EFI_SUCCESS;
}
- gBS->FreePool (Password);
- gBS->FreePool (EncodedPassword);
+ FreePool (Password);
+ FreePool (EncodedPassword);
return Status;
}
@@ -225,7 +219,7 @@ SetPassword ( NULL
);
}
- gBS->FreePool (Configuration);
+ FreePool (Configuration);
//
// Set password
@@ -568,7 +562,7 @@ DriverCallback ( TRUE, // Append or replace
&UpdateData // Dynamic created opcodes
);
- gBS->FreePool (IfrOptionList);
+ FreePool (IfrOptionList);
IfrLibFreeUpdateData (&UpdateData);
break;
@@ -805,7 +799,7 @@ DriverSampleInit ( DriverHandle[0],
&HiiHandle[0]
);
- gBS->FreePool (PackageList);
+ FreePool (PackageList);
if (EFI_ERROR (Status)) {
return Status;
}
@@ -836,7 +830,7 @@ DriverSampleInit ( DriverHandle[1],
&HiiHandle[1]
);
- gBS->FreePool (PackageList);
+ FreePool (PackageList);
if (EFI_ERROR (Status)) {
return Status;
}
|