summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-09-30 22:45:58 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-09-30 22:45:58 +0000
commitd2646fb00b27f8d7ece27b199bab554e6c11813f (patch)
treed83b5252df4199058ea724863d72db5c7eba51ab /sys/arch/sgi
parent22c9ccd259f6950bf6ef726999a79f671af1fdc5 (diff)
Nuke a #if 0/#endif block and a related variable. No plans to ever make
this work better than it does now. Eliminates a stray use of LABELSECTOR. ok miod@
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/stand/boot/diskio.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/arch/sgi/stand/boot/diskio.c b/sys/arch/sgi/stand/boot/diskio.c
index 0df8cf46f97..c21690bd4a1 100644
--- a/sys/arch/sgi/stand/boot/diskio.c
+++ b/sys/arch/sgi/stand/boot/diskio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diskio.c,v 1.9 2014/07/12 21:03:38 tedu Exp $ */
+/* $OpenBSD: diskio.c,v 1.10 2015/09/30 22:45:57 krw Exp $ */
/*
* Copyright (c) 2000 Opsycon AB (www.opsycon.se)
@@ -73,7 +73,6 @@ dioopen(struct open_file *f, ...)
struct dio_softc *sc;
struct disklabel *lp;
long fd;
- daddr32_t labelsector;
va_list ap;
va_start(ap, f);
@@ -101,23 +100,6 @@ dioopen(struct open_file *f, ...)
lp->d_partitions[partition].p_offset = 0;
lp->d_partitions[0].p_size = 0x7fff0000;
- labelsector = LABELSECTOR;
-
-#if 0
- /* Try to read disk label and partition table information. */
- i = diostrategy(sc, F_READ, (daddr32_t)labelsector, DEV_BSIZE, buf, &cnt);
-
- if (i == 0 && cnt == DEV_BSIZE)
- msg = getdisklabel(buf, lp);
- else
- msg = "rd err";
-
- if (msg) {
- printf("%s: %s\n", ctlr, msg);
- return (ENXIO);
- }
-#endif
-
return (0);
}