summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-02-05 16:29:31 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-02-05 16:29:31 +0000
commit2bd78861daf04f2a8a138592f716ee616c54cb44 (patch)
tree1ee27bd5a5d19fecc05c1cffd83b894f58bf7044 /sys/arch
parent9b9477743c82bfd5aa1afc14395edd7cbfacbaec (diff)
Nuke unnecessary abstraction 'scsi_minphys()' which just calls
'minphys()'. Just use & check for NULL instead, since 'minphys()' is always called on the code path ([cd|sd|st]minphys) that calls physio().
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/luna88k/dev/spc.c4
-rw-r--r--sys/arch/sgi/hpc/wdsc.c4
-rw-r--r--sys/arch/sparc64/dev/vdsk.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/luna88k/dev/spc.c b/sys/arch/luna88k/dev/spc.c
index 679d388c4b3..30978779150 100644
--- a/sys/arch/luna88k/dev/spc.c
+++ b/sys/arch/luna88k/dev/spc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spc.c,v 1.10 2020/01/23 07:52:59 krw Exp $ */
+/* $OpenBSD: spc.c,v 1.11 2020/02/05 16:29:29 krw Exp $ */
/* $NetBSD: spc.c,v 1.4 2003/07/05 19:00:17 tsutsui Exp $ */
/*-
@@ -60,7 +60,7 @@ struct cfdriver spc_cd = {
};
struct scsi_adapter spc_switch = {
- spc_scsi_cmd, scsi_minphys, NULL, NULL, NULL
+ spc_scsi_cmd, NULL, NULL, NULL, NULL
};
/* bus space tag for spc */
diff --git a/sys/arch/sgi/hpc/wdsc.c b/sys/arch/sgi/hpc/wdsc.c
index 6cff31db176..385f7073a7f 100644
--- a/sys/arch/sgi/hpc/wdsc.c
+++ b/sys/arch/sgi/hpc/wdsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdsc.c,v 1.6 2020/01/23 07:52:59 krw Exp $ */
+/* $OpenBSD: wdsc.c,v 1.7 2020/02/05 16:29:29 krw Exp $ */
/* $NetBSD: wdsc.c,v 1.32 2011/07/01 18:53:47 dyoung Exp $ */
/*
@@ -85,7 +85,7 @@ void wdsc_dmastop(struct wd33c93_softc *);
void wdsc_reset(struct wd33c93_softc *);
struct scsi_adapter wdsc_switch = {
- wd33c93_scsi_cmd, scsi_minphys, NULL, NULL, NULL
+ wd33c93_scsi_cmd, NULL, NULL, NULL, NULL
};
/*
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c
index 99c1608414d..b3262729d30 100644
--- a/sys/arch/sparc64/dev/vdsk.c
+++ b/sys/arch/sparc64/dev/vdsk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsk.c,v 1.51 2020/01/26 04:23:55 tedu Exp $ */
+/* $OpenBSD: vdsk.c,v 1.52 2020/02/05 16:29:29 krw Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
@@ -344,7 +344,7 @@ vdsk_attach(struct device *parent, struct device *self, void *aux)
scsi_iopool_init(&sc->sc_iopool, sc, vdsk_io_get, vdsk_io_put);
sc->sc_switch.scsi_cmd = vdsk_scsi_cmd;
- sc->sc_switch.dev_minphys = scsi_minphys;
+ sc->sc_switch.dev_minphys = NULL;
sc->sc_switch.dev_probe = vdsk_dev_probe;
sc->sc_switch.dev_free = vdsk_dev_free;