diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-04-20 12:14:55 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-04-20 12:14:55 +0000 |
commit | 8fd989091275b0c1a35acd86ce5cf14a76cf33c1 (patch) | |
tree | 1dcc2e8fa389d839838f9a38669de0544efa3635 | |
parent | ff51dafc77813d061eda456c01b8f98e5cddda37 (diff) |
remove some useless code found by lint.
-rw-r--r-- | sys/dev/ic/ami.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index d60afb8d6ec..37600218603 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.147 2006/04/20 04:39:11 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.148 2006/04/20 12:14:54 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -730,7 +730,7 @@ ami_quartz_poll(struct ami_softc *sc, struct ami_iocmd *cmd) { /* struct scsi_xfer *xs = ccb->ccb_xs; */ u_int32_t i; - u_int8_t status, ready; + u_int8_t status; if (sc->sc_dis_poll) return (1); /* fail */ @@ -815,23 +815,8 @@ ami_quartz_poll(struct ami_softc *sc, struct ami_iocmd *cmd) return (1); } - ready = sc->sc_mbox->acc_cmplidl[0]; - for (i = 0; i < AMI_MAXSTATACK; i++) sc->sc_mbox->acc_cmplidl[i] = 0xff; -#if 0 - /* FIXME */ - /* am I a scsi command? if so complete it */ - if (xs) { - printf("sc "); - if (!ami_done(sc, ready)) - status = 0; - else - status = 1; /* failed */ - } else /* need to clean up ccb ourselves */ - ami_put_ccb(ccb); -#endif - return (status); } |