删除冗余代码
This commit is contained in:
parent
4403c87d3d
commit
13d933aad9
|
@ -7,9 +7,6 @@ typedef struct __bootinfo_next_result_t
|
||||||
void *addr;
|
void *addr;
|
||||||
} bootinfo_next_result_t;
|
} bootinfo_next_result_t;
|
||||||
|
|
||||||
u32 mbi_record[32];
|
|
||||||
u32 mbirc = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief
|
* @brief
|
||||||
*
|
*
|
||||||
|
@ -43,7 +40,6 @@ void bootinfo_new(bootinfo_t *bootinfo, void *bootinfo_addr)
|
||||||
memset(bootinfo->map_counts, 0, sizeof(bootinfo->map_counts));
|
memset(bootinfo->map_counts, 0, sizeof(bootinfo->map_counts));
|
||||||
while ((bootinfo_next(bootinfo, &res), res.type))
|
while ((bootinfo_next(bootinfo, &res), res.type))
|
||||||
{
|
{
|
||||||
mbi_record[mbirc++] = res.type;
|
|
||||||
if (res.type == BOOTINFO_EFI_BOOTSERVICE_NOT_TERMINATED_TYPE)
|
if (res.type == BOOTINFO_EFI_BOOTSERVICE_NOT_TERMINATED_TYPE)
|
||||||
{
|
{
|
||||||
bootinfo->map_counts[res.type] = true;
|
bootinfo->map_counts[res.type] = true;
|
||||||
|
|
Reference in New Issue