summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atascsi.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2020-02-05 16:29:29 +0000
committerkrw <krw@openbsd.org>2020-02-05 16:29:29 +0000
commit21ceeee05577ce1c0ca96b67812b1d15d604096d (patch)
tree47965cfdb7c0bc34a9a4d152246d47b6de107c4d /sys/dev/ata/atascsi.c
parentVery old firmware umsm devices don't work as umb(4), so I made them work (diff)
downloadwireguard-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.c4
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);