From 96643545c5398dda9fd3fdabfce1be26fd254a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 21 Aug 2005 23:18:43 +0000 Subject: [PATCH] Removed unnecessary and stupid code - the doubled chain allocation also caused a page fault during startup, because the chain memory is B_NO_LOCK. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14043 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/util/cbuf.c | 17 ----------------- 1 file changed, 17 deletions(-) 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; }