summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-04-10 16:17:39 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-04-10 16:17:39 +0000
commit4be2a4e014dbfc4c94b74321305c75736a426b35 (patch)
treed8875d389c7fbd38cffe533e81acca3374404ac0
parent2c3e03f90915f6ab02edcbd4a3f4237d4395bbf3 (diff)
Remove a bunch of if 0ed out code that used vtophys. it hasn't been used
by now, probably won't be in the future. ok krw. "Correctski" from miod@ after I put back another chunk he wanted to remain.
-rw-r--r--sys/dev/ic/aac.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/ic/aac.c b/sys/dev/ic/aac.c
index e127d0dda66..d6d6f8232b8 100644
--- a/sys/dev/ic/aac.c
+++ b/sys/dev/ic/aac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aac.c,v 1.43 2010/03/23 01:57:19 krw Exp $ */
+/* $OpenBSD: aac.c,v 1.44 2010/04/10 16:17:38 oga Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -2483,12 +2483,6 @@ aac_internal_cache_cmd(struct scsi_xfer *xs)
void
aacminphys(struct buf *bp, struct scsi_link *sl)
{
-#if 0
- u_int8_t *buf = bp->b_data;
- paddr_t pa;
- long off;
-#endif
-
AAC_DPRINTF(AAC_D_MISC, ("aacminphys(0x%x)\n", bp));
#if 0 /* As this is way more than MAXPHYS it's really not necessary. */
@@ -2496,14 +2490,6 @@ aacminphys(struct buf *bp, struct scsi_link *sl)
bp->b_bcount = ((AAC_MAXOFFSETS - 1) * PAGE_SIZE);
#endif
-#if 0
- for (off = PAGE_SIZE, pa = vtophys(buf); off < bp->b_bcount;
- off += PAGE_SIZE)
- if (pa + off != vtophys(buf + off)) {
- bp->b_bcount = off;
- break;
- }
-#endif
minphys(bp);
}