diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-18 09:50:09 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-18 09:50:09 +0000 |
commit | e94a9ff7271367e649ee4f9a86da1f1bea6d112e (patch) | |
tree | bcf3077b88cb89d1e7127285b6c54d9658f67287 /MdeModulePkg/Core/Dxe/Library | |
parent | ff61847ddc91285a9ef8be00b89304870c493ef8 (diff) | |
download | edk2-platforms-e94a9ff7271367e649ee4f9a86da1f1bea6d112e.tar.xz |
Code scrub for DxeCore
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5520 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/Library')
-rw-r--r-- | MdeModulePkg/Core/Dxe/Library/Library.c | 20 |
1 files changed, 7 insertions, 13 deletions
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) {
|