summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-09-21 01:12:49 +0000
committeroster <oster@NetBSD.org>2002-09-21 01:12:49 +0000
commitce8b221a5e6d637e1cc04cd8fc4fe7d0aa4ab80b (patch)
treed9b211f0d9a0866ccdaee3676c70cf5b03ec4812 /sys/dev/raidframe
parent22f5e1b6bbde3ed6788a28be561d99a8be0e96a7 (diff)
Nuke rf_AllocAccessStripeMapComponent(). Thanks Krister!
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_map.c14
-rw-r--r--sys/dev/raidframe/rf_map.h4
2 files changed, 3 insertions, 15 deletions
diff --git a/sys/dev/raidframe/rf_map.c b/sys/dev/raidframe/rf_map.c
index 1bc24f3c18b..339d1190391 100644
--- a/sys/dev/raidframe/rf_map.c
+++ b/sys/dev/raidframe/rf_map.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_map.c,v 1.15 2002/09/19 23:23:19 oster Exp $ */
+/* $NetBSD: rf_map.c,v 1.16 2002/09/21 01:12:50 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
**************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.15 2002/09/19 23:23:19 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_map.c,v 1.16 2002/09/21 01:12:50 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -432,16 +432,6 @@ rf_FreePDAList(l_start, l_end, count)
RF_FREELIST_FREE_N(rf_pda_freelist, l_start, next, (RF_PhysDiskAddr_t *), count);
}
-RF_AccessStripeMap_t *
-rf_AllocAccessStripeMapComponent()
-{
- RF_AccessStripeMap_t *p;
-
- RF_FREELIST_GET(rf_asm_freelist, p, next, (RF_AccessStripeMap_t *));
- memset((char *) p, 0, sizeof(RF_AccessStripeMap_t));
-
- return (p);
-}
/* this is essentially identical to AllocPDAList. I should combine the two.
* when we have to call calloc, we do it one component at a time to simplify
* the process of freeing the list at program shutdown. This should not be
diff --git a/sys/dev/raidframe/rf_map.h b/sys/dev/raidframe/rf_map.h
index 316703e2e3e..d31687e4d5c 100644
--- a/sys/dev/raidframe/rf_map.h
+++ b/sys/dev/raidframe/rf_map.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_map.h,v 1.5 2002/08/03 01:07:53 oster Exp $ */
+/* $NetBSD: rf_map.h,v 1.6 2002/09/21 01:12:49 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -58,8 +58,6 @@ RF_PhysDiskAddr_t *rf_AllocPDAList(int count);
void rf_FreePhysDiskAddr(RF_PhysDiskAddr_t * p);
-RF_AccessStripeMap_t *rf_AllocAccessStripeMapComponent(void);
-
RF_AccessStripeMap_t *rf_AllocASMList(int count);
void rf_FreeAccessStripeMapComponent(RF_AccessStripeMap_t * p);