diff options
author | 2006-04-20 12:14:54 +0000 | |
---|---|---|
committer | 2006-04-20 12:14:54 +0000 | |
commit | 51cee910e3314234eb5d005e8727167661caa022 (patch) | |
tree | f1205f5ead36d3aeeef4de8ca1ff46651447b11e | |
parent | change cvs_log() and cvs_vlog() return type to void; OK niallo@. (diff) | |
download | wireguard-openbsd-51cee910e3314234eb5d005e8727167661caa022.tar.xz wireguard-openbsd-51cee910e3314234eb5d005e8727167661caa022.zip |
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); } |