From f7db986b4347b536723b07cffec35fb1b06eb120 Mon Sep 17 00:00:00 2001 From: oster Date: Mon, 29 Dec 2003 05:09:08 +0000 Subject: 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. --- sys/dev/raidframe/rf_threadstuff.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'sys/dev/raidframe') 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 -__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 @@ -38,20 +38,12 @@ __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 *); /* * Shared stuff */ -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 -- cgit