summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-01-15 17:54:14 +0000
committermiod <miod@openbsd.org>2015-01-15 17:54:14 +0000
commit3a3a634f49b8d1e88e3e2cb8945bf924ce8799d8 (patch)
treed27fda7c4e5aa78af3a01bae7bc6bf4de4f95d47
parentremove unused variable (diff)
downloadwireguard-openbsd-3a3a634f49b8d1e88e3e2cb8945bf924ce8799d8.tar.xz
wireguard-openbsd-3a3a634f49b8d1e88e3e2cb8945bf924ce8799d8.zip
Fix subtle breakage for polled commands introduced during iopool conversion.
-rw-r--r--sys/dev/ic/ncr5380sbc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ncr5380sbc.c b/sys/dev/ic/ncr5380sbc.c
index 887dd966b28..525f22fe552 100644
--- a/sys/dev/ic/ncr5380sbc.c
+++ b/sys/dev/ic/ncr5380sbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr5380sbc.c,v 1.31 2014/01/18 07:36:35 dlg Exp $ */
+/* $OpenBSD: ncr5380sbc.c,v 1.32 2015/01/15 17:54:14 miod Exp $ */
/* $NetBSD: ncr5380sbc.c,v 1.13 1996/10/13 01:37:25 christos Exp $ */
/*
@@ -154,7 +154,7 @@ void ncr5380_show_state(void);
#endif /* NCR5380_DEBUG */
-static char *
+const char *
phase_names[8] = {
"DATA_OUT",
"DATA_IN",
@@ -641,7 +641,7 @@ ncr5380_scsi_cmd(xs)
{
struct ncr5380_softc *sc;
struct sci_req *sr;
- int s, i, flags;
+ int s, flags;
sc = xs->sc_link->adapter_softc;
flags = xs->flags;
@@ -681,7 +681,7 @@ ncr5380_scsi_cmd(xs)
if (flags & SCSI_POLL) {
/* Force this new command to be next. */
- sc->sc_rr = i;
+ sc->sc_rr = sr - sc->sc_ring;
}
/*