diff options
author | 2020-02-05 16:29:29 +0000 | |
---|---|---|
committer | 2020-02-05 16:29:29 +0000 | |
commit | 21ceeee05577ce1c0ca96b67812b1d15d604096d (patch) | |
tree | 47965cfdb7c0bc34a9a4d152246d47b6de107c4d /sys/dev/ata/atascsi.c | |
parent | Very old firmware umsm devices don't work as umb(4), so I made them work (diff) | |
download | wireguard-openbsd-21ceeee05577ce1c0ca96b67812b1d15d604096d.tar.xz wireguard-openbsd-21ceeee05577ce1c0ca96b67812b1d15d604096d.zip |
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/ata/atascsi.c')
-rw-r--r-- | sys/dev/ata/atascsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index d5d0435a1ee..645c81249f2 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.132 2020/01/26 00:53:31 krw Exp $ */ +/* $OpenBSD: atascsi.c,v 1.133 2020/02/05 16:29:29 krw Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -96,7 +96,7 @@ void atascsi_free(struct scsi_link *); /* template */ struct scsi_adapter atascsi_switch = { - atascsi_cmd, scsi_minphys, atascsi_probe, atascsi_free, NULL + atascsi_cmd, NULL, atascsi_probe, atascsi_free, NULL }; void ata_swapcopy(void *, void *, size_t); |