summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/Hand/Notify.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-18 09:50:09 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-18 09:50:09 +0000
commite94a9ff7271367e649ee4f9a86da1f1bea6d112e (patch)
treebcf3077b88cb89d1e7127285b6c54d9658f67287 /MdeModulePkg/Core/Dxe/Hand/Notify.c
parentff61847ddc91285a9ef8be00b89304870c493ef8 (diff)
downloadedk2-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/Hand/Notify.c')
-rw-r--r--MdeModulePkg/Core/Dxe/Hand/Notify.c24
1 files changed, 8 insertions, 16 deletions
diff --git a/MdeModulePkg/Core/Dxe/Hand/Notify.c b/MdeModulePkg/Core/Dxe/Hand/Notify.c
index 395cdd4577..67fce28bd2 100644
--- a/MdeModulePkg/Core/Dxe/Hand/Notify.c
+++ b/MdeModulePkg/Core/Dxe/Hand/Notify.c
@@ -71,7 +71,6 @@ CoreRemoveInterfaceFromProtocol (
//
// If there's a protocol notify location pointing to this entry, back it up one
//
-
for(Link = ProtEntry->Notify.ForwardLink; Link != &ProtEntry->Notify; Link=Link->ForwardLink) {
ProtNotify = CR(Link, PROTOCOL_NOTIFY, Link, PROTOCOL_NOTIFY_SIGNATURE);
@@ -83,7 +82,6 @@ CoreRemoveInterfaceFromProtocol (
//
// Remove the protocol interface entry
//
-
RemoveEntryList (&Prot->ByProtocol);
}
@@ -91,8 +89,6 @@ CoreRemoveInterfaceFromProtocol (
}
-
-
/**
Add a new protocol notification record for the request protocol.
@@ -111,11 +107,11 @@ EFIAPI
CoreRegisterProtocolNotify (
IN EFI_GUID *Protocol,
IN EFI_EVENT Event,
- OUT VOID **Registration
+ OUT VOID **Registration
)
{
- PROTOCOL_ENTRY *ProtEntry;
- PROTOCOL_NOTIFY *ProtNotify;
+ PROTOCOL_ENTRY *ProtEntry;
+ PROTOCOL_NOTIFY *ProtNotify;
EFI_STATUS Status;
if ((Protocol == NULL) || (Event == NULL) || (Registration == NULL)) {
@@ -136,9 +132,7 @@ CoreRegisterProtocolNotify (
//
// Allocate a new notification record
//
-
ProtNotify = CoreAllocateBootServicesPool (sizeof(PROTOCOL_NOTIFY));
-
if (ProtNotify != NULL) {
ProtNotify->Signature = PROTOCOL_NOTIFY_SIGNATURE;
@@ -170,8 +164,6 @@ CoreRegisterProtocolNotify (
}
-
-
/**
Reinstall a protocol interface on a device handle. The OldInterface for Protocol is replaced by the NewInterface.
@@ -274,11 +266,11 @@ CoreReinstallProtocolInterface (
//
CoreReleaseProtocolLock ();
Status = CoreConnectController (
- UserHandle,
- NULL,
- NULL,
- TRUE
- );
+ UserHandle,
+ NULL,
+ NULL,
+ TRUE
+ );
CoreAcquireProtocolLock ();
//