summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-03-21 22:41:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-03-21 22:41:31 +0000
commitd4aea93e24e9796b01596d661052727235c90164 (patch)
tree2010783eeaff0265108764cf75ecb4010529d0e5 /sys
parente2d1f895dc1773163ad84eb885c25c06af2fb517 (diff)
Remove unused st_crazymap().
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/sparc/autoconf.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c
index 69ec125ed2d..af2ea638247 100644
--- a/sys/arch/sparc/sparc/autoconf.c
+++ b/sys/arch/sparc/sparc/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.62 2005/03/15 18:47:44 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.63 2005/03/21 22:41:30 miod Exp $ */
/* $NetBSD: autoconf.c,v 1.73 1997/07/29 09:41:53 fair Exp $ */
/*
@@ -107,7 +107,6 @@ char *findblkname(int);
static struct device *getdisk(char *, int, int, dev_t *);
static int mbprint(void *, const char *);
static void crazymap(char *, int *);
-int st_crazymap(int);
void swapconf(void);
void sync_crash(void);
int mainbus_match(struct device *, void *, void *);
@@ -467,7 +466,7 @@ bootpath_build()
/*
* Fake a ROM generated bootpath.
- * The argument `cp' points to a string such as "xd(0,0,0)netbsd"
+ * The argument `cp' points to a string such as "xd(0,0,0)bsd"
*/
static void
@@ -622,7 +621,7 @@ bootpath_fake(bp, cp)
BP_APPEND(bp, "sbus", -1, 0, 0);
BP_APPEND(bp, "esp", -1, v0val[0], 0);
if (cp[1] == 'r')
- snprintf(tmpname, sizeof tmpname, "cd"); /* netbsd uses 'cd', not 'sr'*/
+ snprintf(tmpname, sizeof tmpname, "cd"); /* OpenBSD uses 'cd', not 'sr'*/
else
snprintf(tmpname, sizeof tmpname, "%c%c", cp[0], cp[1]);
/* XXX - is TARGET/LUN encoded in v0val[1]? */
@@ -750,20 +749,6 @@ sd_crazymap(n)
return prom_sd_crazymap[n];
}
-int
-st_crazymap(n)
- int n;
-{
- static int prom_st_crazymap[8]; /* static: compute only once! */
- static int init = 0;
-
- if (init == 0) {
- crazymap("st-targets", prom_st_crazymap);
- init = 1;
- }
- return prom_st_crazymap[n];
-}
-
/*
* Determine mass storage and memory configuration for a machine.
* We get the PROM's root device and make sure we understand it, then