OvmfPkg/QemuKernelLoaderFsDxe: drop bogus assert

Triggers when trying to get root directory info.
Reproducer:
 * Use qemu -kernel with something edk2 can not load.
 * When dropped into the efi shell try inspect the file system.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-01-16 15:52:54 +01:00 committed by Ard Biesheuvel
parent adf385ecab
commit 1111e9fe70

View File

@ -290,7 +290,6 @@ QemuKernelBlobTypeToFileInfo (
NameSize = (StrLen (Name) + 1) * 2;
FileInfoSize = OFFSET_OF (EFI_FILE_INFO, FileName) + NameSize;
ASSERT (FileInfoSize >= sizeof *FileInfo);
OriginalBufferSize = *BufferSize;
*BufferSize = FileInfoSize;