summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_callback.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2004-02-29 04:03:50 +0000
committeroster <oster@NetBSD.org>2004-02-29 04:03:50 +0000
commit5a02af5b2137cc7b754a822f3138147472b8dc65 (patch)
tree0805307e12eb721415c3729ecaacb94fed9a9656 /sys/dev/raidframe/rf_callback.c
parentda96c7f542cd08525a7f3e36990b82defa3fd1bd (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_callback.c')
-rw-r--r--sys/dev/raidframe/rf_callback.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/dev/raidframe/rf_callback.c b/sys/dev/raidframe/rf_callback.c
index 9c379d6e646..9c9ace5741a 100644
--- a/sys/dev/raidframe/rf_callback.c
+++ b/sys/dev/raidframe/rf_callback.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_callback.c,v 1.12 2003/12/30 21:59:03 oster Exp $ */
+/* $NetBSD: rf_callback.c,v 1.13 2004/02/29 04:03:50 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.12 2003/12/30 21:59:03 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_callback.c,v 1.13 2004/02/29 04:03:50 oster Exp $");
#include <dev/raidframe/raidframevar.h>
#include <sys/pool.h>
@@ -62,19 +62,14 @@ int
rf_ConfigureCallback(listp)
RF_ShutdownList_t **listp;
{
- int rc;
pool_init(&rf_callback_pool, sizeof(RF_CallbackDesc_t), 0, 0, 0,
"rf_callbackpl", NULL);
pool_sethiwat(&rf_callback_pool, RF_MAX_FREE_CALLBACK);
pool_prime(&rf_callback_pool, RF_CALLBACK_INITIAL);
- rc = rf_ShutdownCreate(listp, rf_ShutdownCallback, NULL);
- if (rc) {
- rf_print_unable_to_add_shutdown(__FILE__,__LINE__, rc);
- rf_ShutdownCallback(NULL);
- return (rc);
- }
+ rf_ShutdownCreate(listp, rf_ShutdownCallback, NULL);
+
return (0);
}