删除冗余代码

This commit is contained in:
pointer-to-bios 2024-01-16 01:38:17 +08:00
parent 4403c87d3d
commit 13d933aad9
1 changed files with 0 additions and 4 deletions

View File

@ -7,9 +7,6 @@ typedef struct __bootinfo_next_result_t
void *addr;
} bootinfo_next_result_t;
u32 mbi_record[32];
u32 mbirc = 0;
/**
* @brief
*
@ -43,7 +40,6 @@ void bootinfo_new(bootinfo_t *bootinfo, void *bootinfo_addr)
memset(bootinfo->map_counts, 0, sizeof(bootinfo->map_counts));
while ((bootinfo_next(bootinfo, &res), res.type))
{
mbi_record[mbirc++] = res.type;
if (res.type == BOOTINFO_EFI_BOOTSERVICE_NOT_TERMINATED_TYPE)
{
bootinfo->map_counts[res.type] = true;