update it

This commit is contained in:
Sukchan Lee 2017-03-22 07:52:47 +09:00
parent e1f06e5cb0
commit 4b6f9355fe
1 changed files with 1 additions and 5 deletions

View File

@ -144,15 +144,11 @@ static clbuf_t* clbuf_alloc(c_uint16_t length)
pool_alloc_node(&cluster_2048_pool, &cluster);
clbuf->size = SIZEOF_CLUSTER_2048;
}
else if (length <= 8192)
else
{
pool_alloc_node(&cluster_8192_pool, &cluster);
clbuf->size = SIZEOF_CLUSTER_8192;
}
else
{
d_assert(0, return NULL, "No cluster. length:%d requested", length)
}
d_assert(cluster, pool_free_node(&clbuf_pool, clbuf); return NULL,
"No more free cluster. length:%d requested", length);