1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-10-30 12:03:52 -04:00

Remove unnecessary code

This commit is contained in:
Braiden Vasco 2017-11-01 14:31:33 +00:00
parent b3d4b68e43
commit 2c8e2ae0ed

View file

@ -8,7 +8,6 @@ static void printf(const char *format, ...);
void print_multiboot_info(unsigned long addr) void print_multiboot_info(unsigned long addr)
{ {
struct multiboot_tag *tag; struct multiboot_tag *tag;
unsigned size;
if (addr & 7) if (addr & 7)
{ {
@ -16,8 +15,6 @@ void print_multiboot_info(unsigned long addr)
return; return;
} }
size = *(unsigned *) addr;
for ( for (
tag = (struct multiboot_tag *) (addr + 8); tag = (struct multiboot_tag *) (addr + 8);
tag->type != MULTIBOOT_TAG_TYPE_END; tag->type != MULTIBOOT_TAG_TYPE_END;