summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ami.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/ami.c')
-rw-r--r--sys/dev/ic/ami.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 37600218603..f60d40a1076 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.148 2006/04/20 12:14:54 dlg Exp $ */
+/* $OpenBSD: ami.c,v 1.149 2006/04/20 13:02:26 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -176,7 +176,7 @@ ami_get_ccb(struct ami_softc *sc)
{
struct ami_ccb *ccb;
- ccb = TAILQ_LAST(&sc->sc_ccb_freeq, ami_queue_head);
+ ccb = TAILQ_FIRST(&sc->sc_ccb_freeq);
if (ccb) {
TAILQ_REMOVE(&sc->sc_ccb_freeq, ccb, ccb_link);
ccb->ccb_state = AMI_CCB_READY;