From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C268981D79 for ; Mon, 16 Jan 2017 23:08:51 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 16 Jan 2017 23:08:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,243,1477983600"; d="scan'208";a="1083871647" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.9]) by orsmga001.jf.intel.com with ESMTP; 16 Jan 2017 23:08:50 -0800 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Jeff Fan , Ruiyu Ni , Liming Gao , Michael Kinney Date: Tue, 17 Jan 2017 15:08:37 +0800 Message-Id: <1484636920-180432-5-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1484636920-180432-1-git-send-email-star.zeng@intel.com> References: <1484636920-180432-1-git-send-email-star.zeng@intel.com> Subject: [PATCH 4/7] IntelFrameworkModulePkg: Use EfiEventEmptyFunction from UefiLib X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2017 07:08:51 -0000 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 Cc: Ruiyu Ni Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c index bf81de40a31d..8a64f041426a 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BdsEntry.c @@ -83,24 +83,6 @@ BdsInitialize ( return Status; } - -/** - An empty function to pass error checking of CreateEventEx (). - - @param Event Event whose notification function is being invoked. - @param Context Pointer to the notification function's context, - which is implementation-dependent. - -**/ -VOID -EFIAPI -BdsEmptyCallbackFunction ( - IN EFI_EVENT Event, - IN VOID *Context - ) -{ -} - /** This function attempts to boot for the boot order specified @@ -144,7 +126,7 @@ BdsBootDeviceSelect ( Status = gBS->CreateEventEx ( EVT_NOTIFY_SIGNAL, TPL_CALLBACK, - BdsEmptyCallbackFunction, + EfiEventEmptyFunction, NULL, &gConnectConInEventGuid, &ConnectConInEvent -- 2.7.0.windows.1