summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-03-08 09:30:07 +0800
committerHao Wu <hao.a.wu@intel.com>2016-03-23 13:38:01 +0800
commit21a976e4c006cca56bf84d0106eb8aac49b3c5a2 (patch)
tree62a7790a153da00edff64b5119451b6aa582355f /MdeModulePkg
parent2d15a830172675b1685cb413de4187fb9f646695 (diff)
downloadedk2-platforms-21a976e4c006cca56bf84d0106eb8aac49b3c5a2.tar.xz
MdeModulePkg RamDiskDxe: Remove unnecessary 'DisconnectController' calls
The 'DisconnectController' function calls after 'UninstallMultipleProtocolInterfaces' are unnecessary, since 'DisconnectController' is called inside function 'UninstallMultipleProtocolInterfaces'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c3
-rw-r--r--MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c2
2 files changed, 0 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
index b5770dd85a..d4317019a5 100644
--- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
+++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c
@@ -191,9 +191,6 @@ UnregisterAllRamDisks (
FreePool ((VOID *)(UINTN) PrivateData->StartingAddr);
}
-
- gBS->DisconnectController (PrivateData->Handle, NULL, NULL);
-
FreePool (PrivateData->DevicePath);
FreePool (PrivateData);
ListEntryNum--;
diff --git a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
index cfeae218e7..b53709b493 100644
--- a/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
+++ b/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c
@@ -339,8 +339,6 @@ RamDiskUnregister (
FreePool ((VOID *)(UINTN) PrivateData->StartingAddr);
}
- gBS->DisconnectController (PrivateData->Handle, NULL, NULL);
-
FreePool (PrivateData->DevicePath);
FreePool (PrivateData);
ListEntryNum--;