diff options
| -rw-r--r-- | sys/pci/ncr.c | 5 |
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; |
