X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EmbeddedPkg%2FEbl%2FEfiDevice.c;fp=EmbeddedPkg%2FEbl%2FEfiDevice.c;h=2f9a6067267cc4e950000d17ac53bd1f2444f589;hp=354a6d7720c250f30212ec72bbd0c83f2d1f68ef;hb=884366cf56a53f3e54c19790e60c9eb788706e1c;hpb=9f6b977f6619950438ac3b765904b7a3ff454baa diff --git a/EmbeddedPkg/Ebl/EfiDevice.c b/EmbeddedPkg/Ebl/EfiDevice.c index 354a6d7720..2f9a606726 100644 --- a/EmbeddedPkg/Ebl/EfiDevice.c +++ b/EmbeddedPkg/Ebl/EfiDevice.c @@ -210,34 +210,13 @@ EblDeviceCmd ( UINTN Index; UINTN CurrentRow; UINTN Max; - EFI_OPEN_FILE *File; CurrentRow = 0; // Need to call here to make sure Device Counts are valid EblUpdateDeviceLists (); - // - // Probe for media insertion/removal in removable media devices - // - Max = EfiGetDeviceCounts (EfiOpenBlockIo); - if (Max != 0) { - for (Index = 0; Index < Max; Index++) { - File = EfiDeviceOpenByType (EfiOpenBlockIo, Index); - if (File != NULL) { - if (File->FsBlockIoMedia->RemovableMedia) { - // Probe to see if media is present (or not) or media changed - // this causes the ReinstallProtocolInterface() to fire in the - // block io driver to update the system about media change events - File->FsBlockIo->ReadBlocks (File->FsBlockIo, File->FsBlockIo->Media->MediaId, (EFI_LBA)0, 0, NULL); - } - EfiClose (File); - } - } - } - // Now we can print out the info... - Max = EfiGetDeviceCounts (EfiOpenFirmwareVolume); if (Max != 0) { AsciiPrint ("Firmware Volume Devices:\n");