summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2003-12-29 05:09:08 +0000
committeroster <oster@NetBSD.org>2003-12-29 05:09:08 +0000
commitf7db986b4347b536723b07cffec35fb1b06eb120 (patch)
tree496338ef48cc504fddb1c898180c9c0a8147fd67 /sys/dev/raidframe
parent9a5cad32eb764d784914d4a49f3e83b1d0ac6bd7 (diff)
mutex_destroyer() has been reduced to nothing. Turf it.
That means there is no point in having any of the shutdown stuff call mutex_destroyer() on any of the mutexes. Nuke related code.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_threadstuff.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/dev/raidframe/rf_threadstuff.c b/sys/dev/raidframe/rf_threadstuff.c
index 0161a95bdb8..0bdc2fe2a97 100644
--- a/sys/dev/raidframe/rf_threadstuff.c
+++ b/sys/dev/raidframe/rf_threadstuff.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_threadstuff.c,v 1.14 2003/12/29 05:01:14 oster Exp $ */
+/* $NetBSD: rf_threadstuff.c,v 1.15 2003/12/29 05:09:08 oster Exp $ */
/*
* rf_threadstuff.c
*/
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_threadstuff.c,v 1.14 2003/12/29 05:01:14 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_threadstuff.c,v 1.15 2003/12/29 05:09:08 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -38,7 +38,6 @@ __KERNEL_RCSID(0, "$NetBSD: rf_threadstuff.c,v 1.14 2003/12/29 05:01:14 oster Ex
#include "rf_general.h"
#include "rf_shutdown.h"
-static void mutex_destroyer(void *);
static void cond_destroyer(void *);
/*
@@ -46,13 +45,6 @@ static void cond_destroyer(void *);
*/
static void
-mutex_destroyer(arg)
- void *arg;
-{
-
-}
-
-static void
cond_destroyer(arg)
void *arg;
{
@@ -71,15 +63,10 @@ RF_DECLARE_MUTEX(*m)
char *file;
int line;
{
- int rc;
rf_mutex_init(m);
- rc = _rf_ShutdownCreate(listp, mutex_destroyer, (void *) m, file, line);
- if (rc) {
- RF_ERRORMSG1("RAIDFRAME: Error %d adding shutdown entry\n", rc);
- }
- return (rc);
+ return (0);
}
#if 0