summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/qle.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/pci/qle.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/pci/qle.c')
-rw-r--r--sys/dev/pci/qle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index 8e2ca42add0..5787f45c423 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.50 2020/01/23 07:53:00 krw Exp $ */
+/* $OpenBSD: qle.c,v 1.51 2020/02/05 16:29:30 krw Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -255,7 +255,7 @@ int qle_scsi_probe(struct scsi_link *);
struct scsi_adapter qle_switch = {
- qle_scsi_cmd, scsi_minphys, qle_scsi_probe, NULL, NULL
+ qle_scsi_cmd, NULL, qle_scsi_probe, NULL, NULL
};
u_int32_t qle_read(struct qle_softc *, int);