summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-28 20:02:43 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-28 20:02:43 +0000
commitd892054cb51088a2c066f1fc9f1e4beb0df51096 (patch)
tree4c2d41dcb79612cedf966887204dbb6af7239e3c /sys/scsi
parent93fd06ec96115f95fd4e8bc4283d4826a5107471 (diff)
Recast "SCSISPC() != 2" into "!SCSI2() || SCSI3()", i.e. "!= 2" into
"< 2 || > 2". Step towards allowing SCSISPC() to be updated to return actual SPC values.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/safte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index c739be4823e..a6795c7b27e 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.54 2019/08/24 02:13:55 krw Exp $ */
+/* $OpenBSD: safte.c,v 1.55 2019/08/28 20:02:42 krw Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -124,7 +124,7 @@ safte_match(struct device *parent, void *match, void *aux)
return (2);
if ((inq->device & SID_TYPE) != T_PROCESSOR ||
- SCSISPC(inq->version) != 2 ||
+ !SCSI2(inq->version) || SCSI3(inq->version) ||
(inq->response_format & SID_ANSII) != 2)
return (0);