X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Nt32Pkg%2FMiscSubClassPlatformDxe%2FMiscSystemLanguageStringFunction.c;h=45d2279c2a523688b299f3a6790e540a92d35bf1;hp=b2232a442f7cf1ce3672ceb88a7559415c8f0c21;hb=4d5d7812786db947e476b4d850698b465d0e2d99;hpb=1fdd39d371ecd0c660dce8926add29846c95cd37
diff --git a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c
index b2232a442f..45d2279c2a 100644
--- a/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c
+++ b/Nt32Pkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c
@@ -1,24 +1,9 @@
-/*++
+/** @file
-Copyright (c) 2009, Intel Corporation. All rights reserved.
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent
-Module Name:
-
- MiscResetCapabilitiesFunction.c
-
-Abstract:
-
- ResetCapabilities.
- SMBIOS type 23.
-
---*/
+**/
#include "MiscSubclassDriver.h"
/**
@@ -79,13 +64,8 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemLanguageString)
//
// Now we have got the full smbios record, call smbios protocol to add this record.
//
- SmbiosHandle = 0;
- Status = Smbios-> Add(
- Smbios,
- NULL,
- &SmbiosHandle,
- (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord
- );
+ Status = AddSmbiosRecord (Smbios, &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord);
+
FreePool(SmbiosRecord);
return Status;
}