summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-12-27 22:05:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-12-27 22:05:28 +0000
commitb1254e6f3115116fbfd32be74ae3f00983c238f6 (patch)
treecee4311609f802985263295e7772d7d871597c7b /sys/arch
parentd3cd6b345c11bf0c7cffedac85d96f1756fbcd42 (diff)
Better initialize local variables before they are used, even if the compiler
did not notice.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme88k/dev/vs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vs.c b/sys/arch/mvme88k/dev/vs.c
index 9b7b251f298..7bb1c517e22 100644
--- a/sys/arch/mvme88k/dev/vs.c
+++ b/sys/arch/mvme88k/dev/vs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vs.c,v 1.57 2005/12/27 21:38:13 miod Exp $ */
+/* $OpenBSD: vs.c,v 1.58 2005/12/27 22:05:27 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
@@ -360,12 +360,13 @@ vs_scsicmd(struct scsi_xfer *xs)
struct vs_cb *cb;
u_int queue;
+ flags = xs->flags;
+
queue = flags & SCSI_POLL ? 0 : vs_queue_number(slp, sc);
cb = &sc->sc_cb[queue];
if (cb->cb_xs != NULL)
return (TRY_AGAIN_LATER);
- flags = xs->flags;
if (flags & SCSI_POLL) {
cqep = sh_MCE;
iopb = sh_MCE_IOPB;