diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-02-15 01:58:02 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-02-15 01:58:02 +0000 |
commit | 129eda6c88a7c9c9d83c675938c807ff71d166b7 (patch) | |
tree | 179e33d6c3a2d7d71f88ac851557f6d11d79e369 /sys | |
parent | 676912f578d7682f7bd29842d4c1b40e8b5137ce (diff) |
Eliminate gdt_minphys() as it doesn't do anything. As the comment says
" ... it's really not necessary" since 128 * PAGE_SIZE will never be
less than MAXPHYS.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/gdt_common.c | 15 | ||||
-rw-r--r-- | sys/dev/ic/gdtvar.h | 3 |
2 files changed, 3 insertions, 15 deletions
diff --git a/sys/dev/ic/gdt_common.c b/sys/dev/ic/gdt_common.c index c37abb3b6a0..c0a6d62d483 100644 --- a/sys/dev/ic/gdt_common.c +++ b/sys/dev/ic/gdt_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt_common.c,v 1.67 2020/01/26 00:53:31 krw Exp $ */ +/* $OpenBSD: gdt_common.c,v 1.68 2020/02/15 01:58:01 krw Exp $ */ /* * Copyright (c) 1999, 2000, 2003 Niklas Hallqvist. All rights reserved. @@ -93,7 +93,7 @@ struct cfdriver gdt_cd = { }; struct scsi_adapter gdt_switch = { - gdt_scsi_cmd, gdt_minphys, NULL, NULL, NULL + gdt_scsi_cmd, NULL, NULL, NULL, NULL }; int gdt_cnt = 0; @@ -1093,17 +1093,6 @@ gdt_intr(void *arg) return (1); } -void -gdt_minphys(struct buf *bp, struct scsi_link *sl) -{ - GDT_DPRINTF(GDT_D_MISC, ("gdt_minphys(0x%x) ", bp)); - - /* As this is way more than MAXPHYS it's really not necessary. */ - if ((GDT_MAXOFFSETS - 1) * PAGE_SIZE < MAXPHYS && - bp->b_bcount > ((GDT_MAXOFFSETS - 1) * PAGE_SIZE)) - bp->b_bcount = ((GDT_MAXOFFSETS - 1) * PAGE_SIZE); -} - int gdt_wait(struct gdt_softc *sc, struct gdt_ccb *ccb, int timeout) { diff --git a/sys/dev/ic/gdtvar.h b/sys/dev/ic/gdtvar.h index ec5e4b9d09a..eb1b6ba5e56 100644 --- a/sys/dev/ic/gdtvar.h +++ b/sys/dev/ic/gdtvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gdtvar.h,v 1.23 2020/01/26 00:53:31 krw Exp $ */ +/* $OpenBSD: gdtvar.h,v 1.24 2020/02/15 01:58:01 krw Exp $ */ /* * Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -236,7 +236,6 @@ struct gdt_softc { int (*sc_test_busy)(struct gdt_softc *); }; -void gdt_minphys(struct buf *, struct scsi_link *); int gdt_attach(struct gdt_softc *); int gdt_intr(void *); |