diff options
-rw-r--r-- | firmware/buflib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c index 0dfbdf6f49..c144088c27 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c | |||
@@ -493,9 +493,7 @@ buffer_alloc: | |||
493 | name_len_slot = (union buflib_data*)B_ALIGN_UP(block[3].name + name_len); | 493 | name_len_slot = (union buflib_data*)B_ALIGN_UP(block[3].name + name_len); |
494 | name_len_slot->val = 1 + name_len/sizeof(union buflib_data); | 494 | name_len_slot->val = 1 + name_len/sizeof(union buflib_data); |
495 | handle->alloc = (char*)(name_len_slot + 1); | 495 | handle->alloc = (char*)(name_len_slot + 1); |
496 | /* If we have just taken the first free block, the next allocation search | 496 | |
497 | * can save some time by starting after this block. | ||
498 | */ | ||
499 | block += size; | 497 | block += size; |
500 | /* alloc_end must be kept current if we're taking the last block. */ | 498 | /* alloc_end must be kept current if we're taking the last block. */ |
501 | if (last) | 499 | if (last) |