diff options
| author | oster <oster@NetBSD.org> | 2004-02-29 04:03:50 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2004-02-29 04:03:50 +0000 |
| commit | 5a02af5b2137cc7b754a822f3138147472b8dc65 (patch) | |
| tree | 0805307e12eb721415c3729ecaacb94fed9a9656 /sys/dev/raidframe/rf_alloclist.c | |
| parent | da96c7f542cd08525a7f3e36990b82defa3fd1bd (diff) | |
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory. Since we only now ever "return(0)", just return (void)
instead.
Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing. Shaves another 600 bytes off of an i386 GENERIC kernel.
Diffstat (limited to 'sys/dev/raidframe/rf_alloclist.c')
| -rw-r--r-- | sys/dev/raidframe/rf_alloclist.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/raidframe/rf_alloclist.c b/sys/dev/raidframe/rf_alloclist.c index e82c8ac8d84..43e901bf646 100644 --- a/sys/dev/raidframe/rf_alloclist.c +++ b/sys/dev/raidframe/rf_alloclist.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_alloclist.c,v 1.17 2004/02/25 02:15:52 oster Exp $ */ +/* $NetBSD: rf_alloclist.c,v 1.18 2004/02/29 04:03:50 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -37,7 +37,7 @@ ***************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_alloclist.c,v 1.17 2004/02/25 02:15:52 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_alloclist.c,v 1.18 2004/02/29 04:03:50 oster Exp $"); #include <dev/raidframe/raidframevar.h> @@ -64,18 +64,13 @@ static void rf_ShutdownAllocList(void *ignored) int rf_ConfigureAllocList(RF_ShutdownList_t **listp) { - int rc; pool_init(&rf_alloclist_pool, sizeof(RF_AllocListElem_t), 0, 0, 0, "rf_alloclist_pl", NULL); pool_sethiwat(&rf_alloclist_pool, RF_AL_FREELIST_MAX); pool_prime(&rf_alloclist_pool, 16); /* need something.. */ - rc = rf_ShutdownCreate(listp, rf_ShutdownAllocList, NULL); - if (rc) { - rf_print_unable_to_add_shutdown( __FILE__, __LINE__, rc); - return (rc); - } + rf_ShutdownCreate(listp, rf_ShutdownAllocList, NULL); return (0); } |
