diff --git a/src/system/kernel/util/cbuf.c b/src/system/kernel/util/cbuf.c index e626fc45b1..b7265615f0 100644 --- a/src/system/kernel/util/cbuf.c +++ b/src/system/kernel/util/cbuf.c @@ -945,13 +945,6 @@ cbuf_init(void) cbuf *buffer; int i; -/* - sFreeBufferList = NULL; - sFreeBufferNoBlockList = NULL; - sNoBlockSpinlock = 0; - sLowlevelSpinlock = 0; -*/ - // add the debug command add_debugger_command("cbuf_freelist", &dbg_dump_cbuf_freelists, "Dumps the cbuf free lists"); @@ -980,15 +973,5 @@ cbuf_init(void) for (i = 0; i < CBUF_BITMAP_SIZE / 8; i++) sBitmap[i] = 0; - buffer = allocate_cbuf_mem(ALLOCATE_CHUNK); - if (buffer == NULL) - return B_NO_MEMORY; - cbuf_free_chain_noblock(buffer); - - buffer = allocate_cbuf_mem(ALLOCATE_CHUNK); - if (buffer == NULL) - return B_NO_MEMORY; - cbuf_free_chain(buffer); - return B_OK; }