From 26a76fbcb2762826523bba325400e302bf346859 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Mon, 1 Mar 2010 03:26:19 +0000 Subject: Update code to match EDKII coding style. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10130 6f19259b-4bc3-4df7-8a09-765794883524 --- .../SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.c | 9 +++++---- .../SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.h | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk') diff --git a/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.c b/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.c index 1b8a40779b..8abd56ecd6 100644 --- a/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.c +++ b/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.c @@ -1,7 +1,7 @@ /** @file SMM Control2 Protocol on SMM Control Protocol Thunk driver. - Copyright (c) 2009 Intel Corporation + Copyright (c) 2009 - 2010, 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 which accompanies this distribution. The full text of the license may be found at @@ -29,8 +29,8 @@ UINT8 mDataPort; This function generates an SMI. @param[in] This The EFI_SMM_CONTROL2_PROTOCOL instance. - @param[in,out] CommandPort The value written to the command port. - @param[in,out] DataPort The value written to the data port. + @param[in, out] CommandPort The value written to the command port. + @param[in, out] DataPort The value written to the data port. @param[in] Periodic Optional mechanism to engender a periodic stream. @param[in] ActivationInterval Optional parameter to repeat at this period one time or, if the Periodic Boolean is set, periodically. @@ -50,8 +50,9 @@ SmmControl2Trigger ( IN UINTN ActivationInterval OPTIONAL ) { - UINTN ArgumentBufferSize = 0; + UINTN ArgumentBufferSize; + ArgumentBufferSize = 0; if (CommandPort != NULL) { ArgumentBufferSize = 1; } diff --git a/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.h b/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.h index ebee0086fe..a74b8299c1 100644 --- a/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.h +++ b/EdkCompatibilityPkg/Compatibility/SmmControl2OnSmmControlThunk/SmmControl2OnSmmControlThunk.h @@ -1,7 +1,7 @@ /** @file Include file for SMM Control2 Protocol on SMM Control Protocol Thunk driver. - Copyright (c) 2009, Intel Corporation + Copyright (c) 2009 - 2010, 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 which accompanies this distribution. The full text of the license may be found at @@ -30,8 +30,8 @@ This function generates an SMI. @param[in] This The EFI_SMM_CONTROL2_PROTOCOL instance. - @param[in,out] CommandPort The value written to the command port. - @param[in,out] DataPort The value written to the data port. + @param[in, out] CommandPort The value written to the command port. + @param[in, out] DataPort The value written to the data port. @param[in] Periodic Optional mechanism to engender a periodic stream. @param[in] ActivationInterval Optional parameter to repeat at this period one time or, if the Periodic Boolean is set, periodically. -- cgit v1.2.3