diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-02-05 16:29:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-02-05 16:29:31 +0000 |
commit | 2bd78861daf04f2a8a138592f716ee616c54cb44 (patch) | |
tree | 1ee27bd5a5d19fecc05c1cffd83b894f58bf7044 /sys/dev/pci/mfii.c | |
parent | 9b9477743c82bfd5aa1afc14395edd7cbfacbaec (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/dev/pci/mfii.c')
-rw-r--r-- | sys/dev/pci/mfii.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 9aada52b7ce..95b98ce35dd 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.66 2020/01/25 05:38:02 jmatthew Exp $ */ +/* $OpenBSD: mfii.c,v 1.67 2020/02/05 16:29:30 krw Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -385,14 +385,14 @@ int mfii_scsi_ioctl(struct scsi_link *, u_long, caddr_t, int); int mfii_ioctl_cache(struct scsi_link *, u_long, struct dk_cache *); struct scsi_adapter mfii_switch = { - mfii_scsi_cmd, scsi_minphys, NULL, NULL, mfii_scsi_ioctl + mfii_scsi_cmd, NULL, NULL, NULL, mfii_scsi_ioctl }; void mfii_pd_scsi_cmd(struct scsi_xfer *); int mfii_pd_scsi_probe(struct scsi_link *); struct scsi_adapter mfii_pd_switch = { - mfii_pd_scsi_cmd, scsi_minphys, mfii_pd_scsi_probe, NULL, NULL, + mfii_pd_scsi_cmd, NULL, mfii_pd_scsi_probe, NULL, NULL, }; #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname) |