mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Remove unnecessary if statement
JerryScript-DCO-1.0-Signed-off-by: Tamas Keri tkeri@inf.u-szeged.hu
This commit is contained in:
parent
1a18766488
commit
5d18ac8f0c
@ -503,15 +503,9 @@ jmem_heap_free_block (void *ptr, /**< pointer to beginning of data space of the
|
||||
/* Update next. */
|
||||
if (jmem_heap_get_region_end (block_p) == next_p)
|
||||
{
|
||||
if (unlikely (next_p == JERRY_CONTEXT (jmem_heap_list_skip_p)))
|
||||
{
|
||||
JERRY_CONTEXT (jmem_heap_list_skip_p) = block_p;
|
||||
}
|
||||
|
||||
/* Can be merged. */
|
||||
block_p->size += next_p->size;
|
||||
block_p->next_offset = next_p->next_offset;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user