]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/SmmCore: SMM register protocol notify function clarify
authorJeff Fan <jeff.fan@intel.com>
Thu, 7 May 2015 02:29:52 +0000 (02:29 +0000)
committervanjeff <vanjeff@Edk2>
Thu, 7 May 2015 02:29:52 +0000 (02:29 +0000)
PI 1.4 clarified SMM register protocol notify function return status as below:
EFI_SUCCESS           Successfully returned the registration record that has
                      been added or unhooked
EFI_INVALID_PARAMETER Protocol is NULL or Registration is NULL
The implementation of SmmRegisterProtocolNotify() already followed this new
rule, needn't to be updated.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17349 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/PiSmmCore/Notify.c

index 5ec0aa71a86fc2eb534b15ae01e11f1502f545a4..0054fe66aab825cd81903159a05a1960b5b0ec40 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Support functions for UEFI protocol notification infrastructure.\r
 \r
-  Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials are licensed and made available \r
   under the terms and conditions of the BSD License which accompanies this \r
   distribution.  The full text of the license may be found at        \r
@@ -91,9 +91,9 @@ SmmRemoveInterfaceFromProtocol (
   @param  Function               Points to the notification function\r
   @param  Registration           Returns the registration record\r
 \r
-  @retval EFI_INVALID_PARAMETER  Invalid parameter\r
   @retval EFI_SUCCESS            Successfully returned the registration record\r
-                                 that has been added\r
+                                 that has been added or unhooked\r
+  @retval EFI_INVALID_PARAMETER  Protocol is NULL or Registration is NULL\r
   @retval EFI_OUT_OF_RESOURCES   Not enough memory resource to finish the request\r
   @retval EFI_NOT_FOUND          If the registration is not found when Function == NULL\r
 \r