diff options
-rw-r--r-- | MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskImpl.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskProtocol.c | 2 |
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--;
|