From 4b6f9355fece82c7701d48448edde6e4f138fd3d Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Wed, 22 Mar 2017 07:52:47 +0900 Subject: [PATCH] update it --- lib/core/src/unix/pkbuf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/core/src/unix/pkbuf.c b/lib/core/src/unix/pkbuf.c index bdcd6b991..3901becc6 100644 --- a/lib/core/src/unix/pkbuf.c +++ b/lib/core/src/unix/pkbuf.c @@ -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);