diff options
Diffstat (limited to 'sys/arch/sun3/dev/xd.c')
-rw-r--r-- | sys/arch/sun3/dev/xd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/sun3/dev/xd.c b/sys/arch/sun3/dev/xd.c index d3a8f835ecb..d5b8508dd81 100644 --- a/sys/arch/sun3/dev/xd.c +++ b/sys/arch/sun3/dev/xd.c @@ -101,8 +101,7 @@ * XDC_HWAIT: add iorq "N" to head of SC's wait queue */ #define XDC_HWAIT(SC, N) { \ - (SC)->waithead = ((SC)->waithead == 0) ? \ - (XDC_MAXIOPB - 1) : ((SC)->waithead - 1); \ + (SC)->waithead = ((SC)->waithead - 1) % XDC_MAXIOPB; \ (SC)->waitq[(SC)->waithead] = (N); \ (SC)->nwait++; \ } @@ -1434,9 +1433,6 @@ xdc_startbuf(xdcsc, xdsc, bp) /* Instrumentation. */ disk_busy(&xdsc->sc_dk); - /* Instrumentation. */ - disk_busy(&xdsc->sc_dk); - /* now submit [note that xdc_submit_iorq can never fail on NORM reqs] */ xdc_submit_iorq(xdcsc, rqno, XD_SUB_NORM); |