From e94a9ff7271367e649ee4f9a86da1f1bea6d112e Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 18 Jul 2008 09:50:09 +0000 Subject: Code scrub for DxeCore git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5520 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/Dxe/Library/Library.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'MdeModulePkg/Core/Dxe/Library') diff --git a/MdeModulePkg/Core/Dxe/Library/Library.c b/MdeModulePkg/Core/Dxe/Library/Library.c index cdef6a9ec6..34d032bddf 100644 --- a/MdeModulePkg/Core/Dxe/Library/Library.c +++ b/MdeModulePkg/Core/Dxe/Library/Library.c @@ -120,7 +120,7 @@ CoreAllocateZeroBootServicesPool ( VOID *Memory; Memory = CoreAllocateBootServicesPool (AllocationSize); - SetMem (Memory, (Memory == NULL) ? 0 : AllocationSize, 0); + ZeroMem (Memory, (Memory == NULL) ? 0 : AllocationSize); return Memory; } @@ -321,7 +321,7 @@ CoreDevicePathSize ( // // Compute the size and add back in the size of the end device path structure // - return ((UINTN)DevicePath - (UINTN)Start) + sizeof(EFI_DEVICE_PATH_PROTOCOL); + return ((UINTN) DevicePath - (UINTN) Start) + sizeof(EFI_DEVICE_PATH_PROTOCOL); } @@ -394,8 +394,6 @@ CoreDuplicateDevicePath ( } - - /** Function is used to append a Src1 and Src2 together. @@ -445,8 +443,6 @@ CoreAppendDevicePath ( } - - /** Create a protocol notification event and return it. @@ -479,25 +475,23 @@ CoreCreateProtocolNotifyEvent ( // // Create the event // - Status = CoreCreateEvent ( EVT_NOTIFY_SIGNAL, NotifyTpl, NotifyFunction, NotifyContext, - &Event + &Event ); ASSERT_EFI_ERROR (Status); // // Register for protocol notifactions on this event // - Status = CoreRegisterProtocolNotify ( - ProtocolGuid, - Event, - Registration - ); + ProtocolGuid, + Event, + Registration + ); ASSERT_EFI_ERROR (Status); if (SignalFlag) { -- cgit v1.2.3