Skip to content

Commit 3ef250c

Browse files
rizlikdanielinux
authored andcommitted
multiboot.c: remove duplicate check on tag->size
1 parent 961bd4b commit 3ef250c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/multiboot.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,6 @@ static void mb2_dump_tags(void* mbTags, uint32_t tags_len) {
336336
if (tag->type == MB2_TAG_TYPE_INFO_REQ)
337337
mb2_parse_info_request_tag(tag);
338338

339-
if (tag->size < sizeof(*tag))
340-
break;
341339
tag = (struct mb2_tag*)mb2_align_address_up((uint8_t*)tag + tag->size,
342340
8);
343341
}

0 commit comments

Comments
 (0)