summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wd33c93.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-09-22 19:32:54 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-09-22 19:32:54 +0000
commit70ab233e8ea36a5247134fe44b69a8dfdf402407 (patch)
tree483c199290faf16a870f66921c5bd6d7ab5353dd /sys/dev/ic/wd33c93.c
parentd527f54e9b61003b890a6173328b1286c7c52ed7 (diff)
Since dlg@'s 2009 scsi midlayer refactoring the 'struct scsi_generic *cmd'
member of 'struct scsi_xfer' has always been pointed at the 'struct scsi_generic cmdstore' member of the same instance. So nuke 'cmdstore' and remove the '*' from cmd. Take the address of cmd as required by the various casts. No intentional functional change. luna88k test by aoyama@, sparc64 test by jmatthew@ Identification of 2009's last *cmd use and ok jmatthew@
Diffstat (limited to 'sys/dev/ic/wd33c93.c')
-rw-r--r--sys/dev/ic/wd33c93.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/wd33c93.c b/sys/dev/ic/wd33c93.c
index 78035b84860..52b7e6e16e5 100644
--- a/sys/dev/ic/wd33c93.c
+++ b/sys/dev/ic/wd33c93.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd33c93.c,v 1.18 2020/07/20 14:41:13 krw Exp $ */
+/* $OpenBSD: wd33c93.c,v 1.19 2020/09/22 19:32:53 krw Exp $ */
/* $NetBSD: wd33c93.c,v 1.24 2010/11/13 13:52:02 uebayasi Exp $ */
/*
@@ -549,7 +549,7 @@ wd33c93_scsi_cmd(struct scsi_xfer *xs)
* to be six bytes long.
*/
if (sc->sc_chip <= SBIC_CHIP_WD33C93) {
- switch (xs->cmd->opcode >> 5) {
+ switch (xs->cmd.opcode >> 5) {
case 0:
case 1:
case 5:
@@ -575,8 +575,8 @@ wd33c93_scsi_cmd(struct scsi_xfer *xs)
* time to recover when the target powers down (the fewer
* targets on the bus, the larger the time needed to recover).
*/
- if (xs->cmd->opcode == START_STOP &&
- ((struct scsi_start_stop *)xs->cmd)->how == SSS_STOP) {
+ if (xs->cmd.opcode == START_STOP &&
+ ((struct scsi_start_stop *)&xs->cmd)->how == SSS_STOP) {
if (xs->timeout < 30000)
xs->timeout = 30000;
}
@@ -593,7 +593,7 @@ wd33c93_scsi_cmd(struct scsi_xfer *xs)
acb->timeout = xs->timeout;
timeout_set(&acb->to, wd33c93_timeout, acb);
- memcpy(&acb->cmd, xs->cmd, xs->cmdlen);
+ memcpy(&acb->cmd, &xs->cmd, xs->cmdlen);
acb->clen = xs->cmdlen;
acb->daddr = xs->data;
acb->dleft = xs->datalen;