]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Hand/Notify.c
Code scrub for DxeCore
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Hand / Notify.c
index 395cdd45773520fd9b59eed3bfe855fdb80390e3..67fce28bd2de44d42df92fce92a4164a7ebb37cf 100644 (file)
@@ -71,7 +71,6 @@ CoreRemoveInterfaceFromProtocol (
     //\r
     // If there's a protocol notify location pointing to this entry, back it up one\r
     //\r
-\r
     for(Link = ProtEntry->Notify.ForwardLink; Link != &ProtEntry->Notify; Link=Link->ForwardLink) {\r
       ProtNotify = CR(Link, PROTOCOL_NOTIFY, Link, PROTOCOL_NOTIFY_SIGNATURE);\r
 \r
@@ -83,7 +82,6 @@ CoreRemoveInterfaceFromProtocol (
     //\r
     // Remove the protocol interface entry\r
     //\r
-\r
     RemoveEntryList (&Prot->ByProtocol);\r
   }\r
 \r
@@ -91,8 +89,6 @@ CoreRemoveInterfaceFromProtocol (
 }\r
 \r
 \r
-\r
-\r
 /**\r
   Add a new protocol notification record for the request protocol.\r
 \r
@@ -111,11 +107,11 @@ EFIAPI
 CoreRegisterProtocolNotify (\r
   IN EFI_GUID       *Protocol,\r
   IN EFI_EVENT      Event,\r
-  OUT  VOID           **Registration\r
+  OUT  VOID         **Registration\r
   )\r
 {\r
-  PROTOCOL_ENTRY      *ProtEntry;\r
-  PROTOCOL_NOTIFY     *ProtNotify;\r
+  PROTOCOL_ENTRY    *ProtEntry;\r
+  PROTOCOL_NOTIFY   *ProtNotify;\r
   EFI_STATUS        Status;\r
   \r
   if ((Protocol == NULL) || (Event == NULL) || (Registration == NULL))  {\r
@@ -136,9 +132,7 @@ CoreRegisterProtocolNotify (
     //\r
     // Allocate a new notification record\r
     //\r
-\r
     ProtNotify = CoreAllocateBootServicesPool (sizeof(PROTOCOL_NOTIFY));\r
-\r
     if (ProtNotify != NULL) {\r
       \r
       ProtNotify->Signature = PROTOCOL_NOTIFY_SIGNATURE;\r
@@ -170,8 +164,6 @@ CoreRegisterProtocolNotify (
 }\r
 \r
 \r
-\r
-\r
 /**\r
   Reinstall a protocol interface on a device handle.  The OldInterface for Protocol is replaced by the NewInterface.\r
 \r
@@ -274,11 +266,11 @@ CoreReinstallProtocolInterface (
   //\r
   CoreReleaseProtocolLock ();\r
   Status = CoreConnectController (\r
-                  UserHandle, \r
-                  NULL, \r
-                  NULL, \r
-                  TRUE\r
-                  );\r
+             UserHandle, \r
+             NULL, \r
+             NULL, \r
+             TRUE\r
+             );\r
   CoreAcquireProtocolLock ();\r
   \r
   //\r