summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2003-07-27 00:13:49 +0000
committerRobert Drehmel <robert@FreeBSD.org>2003-07-27 00:13:49 +0000
commitc39be346e379dcc39aa87370ac5efe9c51d15f6f (patch)
tree5709c37fcd9c8ec295e787566f941f3e678d7867
parent810bf55afed3f15722353e8fceeb90b6fec87ff9 (diff)
Notes
-rw-r--r--sys/pci/ncr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index ca121f2791ce..a1d58a08d5d6 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -3880,7 +3880,7 @@ ncr_action (struct cam_sim *sim, union ccb *ccb)
int segments;
u_int8_t nego;
u_int8_t idmsg;
- u_int8_t qidx;
+ int qidx;
tp = &np->target[ccb->ccb_h.target_id];
csio = &ccb->csio;
@@ -4154,7 +4154,8 @@ ncr_action (struct cam_sim *sim, union ccb *ccb)
*/
qidx = np->squeueput + 1;
- if (qidx >= MAX_START) qidx=0;
+ if (qidx >= MAX_START)
+ qidx = 0;
np->squeue [qidx ] = NCB_SCRIPT_PHYS (np, idle);
np->squeue [np->squeueput] = CCB_PHYS (cp, phys);
np->squeueput = qidx;