]> git.proxmox.com Git - mirror_edk2.git/commitdiff
IntelFrameworkModulePkg: Use EfiEventEmptyFunction from UefiLib
authorStar Zeng <star.zeng@intel.com>
Tue, 17 Jan 2017 06:11:05 +0000 (14:11 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 20 Jan 2017 07:55:32 +0000 (15:55 +0800)
Use EfiEventEmptyFunction from UefiLib and remove the duplication
of event empty function.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=298

Cc: Jeff Fan <jeff.fan@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c

index bf81de40a31da058b1b0d033357f583025c8bc21..6e3e5b05f91bf79e538ac8024cc3e8fe24737ad9 100644 (file)
@@ -5,7 +5,7 @@
   After DxeCore finish DXE phase, gEfiBdsArchProtocolGuid->BdsEntry will be invoked\r
   to enter BDS phase.\r
 \r
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -83,24 +83,6 @@ BdsInitialize (
   return Status;\r
 }\r
 \r
-\r
-/**\r
-  An empty function to pass error checking of CreateEventEx ().\r
-\r
-  @param  Event                 Event whose notification function is being invoked.\r
-  @param  Context               Pointer to the notification function's context,\r
-                                which is implementation-dependent.\r
-\r
-**/\r
-VOID\r
-EFIAPI\r
-BdsEmptyCallbackFunction (\r
-  IN EFI_EVENT                Event,\r
-  IN VOID                     *Context\r
-  )\r
-{\r
-}\r
-\r
 /**\r
 \r
   This function attempts to boot for the boot order specified\r
@@ -144,7 +126,7 @@ BdsBootDeviceSelect (
     Status = gBS->CreateEventEx (\r
                     EVT_NOTIFY_SIGNAL,\r
                     TPL_CALLBACK,\r
-                    BdsEmptyCallbackFunction,\r
+                    EfiEventEmptyFunction,\r
                     NULL,\r
                     &gConnectConInEventGuid,\r
                     &ConnectConInEvent\r