diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-20 09:12:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-20 09:12:06 +0000 |
commit | 2edc85dc276963741265c6a2640507087a35db49 (patch) | |
tree | 62df0a8fcb530ff4c23d2267ebd3b066e67d140d /sys/dev/ic/ami.c | |
parent | 983d9967c0893485b78661a7e026a72454acf5dc (diff) |
get rid of the CCB_READY check in ami_start, it is subtly broken and slows
things down. this path is easy to verify without this code so im just
dropping it.
Diffstat (limited to 'sys/dev/ic/ami.c')
-rw-r--r-- | sys/dev/ic/ami.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index e981a5cb6ef..9e0d0e2d778 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.128 2006/03/20 09:02:02 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.129 2006/03/20 09:12:05 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -990,14 +990,6 @@ ami_start(struct ami_softc *sc, struct ami_ccb *ccb) { int s; - if (ccb->ccb_state != AMI_CCB_READY) { - printf("%s: ccb %d not ready (%d)\n", DEVNAME(sc), - ccb->ccb_cmd.acc_id, ccb->ccb_state); - ccb->ccb_flags |= AMI_CCB_F_ERR; - ccb->ccb_done(sc, ccb); - return; - } - s = splbio(); ccb->ccb_state = AMI_CCB_PREQUEUED; TAILQ_INSERT_TAIL(&sc->sc_ccb_preq, ccb, ccb_link); |