From: qwang12 Date: Wed, 3 Dec 2008 14:23:46 +0000 (+0000) Subject: Update function comment and use MdePkg Library FreePool function. X-Git-Tag: edk2-stable201903~19424 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=53cf48e083930e279cbd8e12fdd923b7cbd65a9a;p=mirror_edk2.git 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 --- 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; }