diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-29 13:38:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-03-29 13:38:06 +0000 |
commit | f1d0d4833982622d10a767b5ca19faf238078795 (patch) | |
tree | bea8641aa03447072245a733ae56621cc41ea279 /sys/dev/ic | |
parent | e47c403f00f3d4d1199d4564b8091b4e11be19ba (diff) |
we never use what the ccb completion functions return, so make them all
return void instead.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ami.c | 37 | ||||
-rw-r--r-- | sys/dev/ic/amivar.h | 4 |
2 files changed, 15 insertions, 26 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index 258a100725d..d728cde6d1d 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.136 2006/03/29 13:31:15 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.137 2006/03/29 13:38:05 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -134,14 +134,14 @@ void ami_runqueue(void *); int ami_start_xs(struct ami_softc *sc, struct ami_ccb *, struct scsi_xfer *); -int ami_done_xs(struct ami_softc *, struct ami_ccb *); -int ami_done_pt(struct ami_softc *, struct ami_ccb *); -int ami_done_flush(struct ami_softc *, struct ami_ccb *); -int ami_done_sysflush(struct ami_softc *, struct ami_ccb *); +void ami_done_xs(struct ami_softc *, struct ami_ccb *); +void ami_done_pt(struct ami_softc *, struct ami_ccb *); +void ami_done_flush(struct ami_softc *, struct ami_ccb *); +void ami_done_sysflush(struct ami_softc *, struct ami_ccb *); void ami_stimeout(void *); -int ami_done_ioctl(struct ami_softc *, struct ami_ccb *); -int ami_done_ccb(struct ami_softc *, struct ami_ccb *); +void ami_done_ioctl(struct ami_softc *, struct ami_ccb *); +void ami_done_ccb(struct ami_softc *, struct ami_ccb *); void ami_copy_internal_data(struct scsi_xfer *, void *, size_t); int ami_inquire(struct ami_softc *, u_int8_t); @@ -1098,7 +1098,7 @@ ami_done(struct ami_softc *sc, int idx) return (0); } -int +void ami_done_pt(struct ami_softc *sc, struct ami_ccb *ccb) { struct scsi_xfer *xs = ccb->ccb_xs; @@ -1140,11 +1140,9 @@ ami_done_pt(struct ami_softc *sc, struct ami_ccb *ccb) splx(s); scsi_done(xs); - - return (0); } -int +void ami_done_xs(struct ami_softc *sc, struct ami_ccb *ccb) { struct scsi_xfer *xs = ccb->ccb_xs; @@ -1175,11 +1173,9 @@ ami_done_xs(struct ami_softc *sc, struct ami_ccb *ccb) splx(s); scsi_done(xs); - - return (0); } -int +void ami_done_flush(struct ami_softc *sc, struct ami_ccb *ccb) { struct scsi_xfer *xs = ccb->ccb_xs; @@ -1197,7 +1193,6 @@ ami_done_flush(struct ami_softc *sc, struct ami_ccb *ccb) splx(s); scsi_done(xs); - return (0); } /* reuse the ccb for the sysflush command */ @@ -1205,10 +1200,9 @@ ami_done_flush(struct ami_softc *sc, struct ami_ccb *ccb) cmd->acc_cmd = AMI_SYSFLUSH; ami_start_xs(sc, ccb, xs); - return (0); } -int +void ami_done_sysflush(struct ami_softc *sc, struct ami_ccb *ccb) { struct scsi_xfer *xs = ccb->ccb_xs; @@ -1225,18 +1219,15 @@ ami_done_sysflush(struct ami_softc *sc, struct ami_ccb *ccb) splx(s); scsi_done(xs); - - return (0); } -int +void ami_done_ioctl(struct ami_softc *sc, struct ami_ccb *ccb) { wakeup(ccb); - return (0); } -int +void ami_done_ccb(struct ami_softc *sc, struct ami_ccb *ccb) { int s; @@ -1244,8 +1235,6 @@ ami_done_ccb(struct ami_softc *sc, struct ami_ccb *ccb) s = splbio(); ami_put_ccb(ccb); splx(s); - - return (0); } void diff --git a/sys/dev/ic/amivar.h b/sys/dev/ic/amivar.h index 0dfe7618eb1..e04304f54a5 100644 --- a/sys/dev/ic/amivar.h +++ b/sys/dev/ic/amivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amivar.h,v 1.43 2006/03/20 10:49:53 dlg Exp $ */ +/* $OpenBSD: amivar.h,v 1.44 2006/03/29 13:38:05 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -57,7 +57,7 @@ struct ami_ccb { bus_dmamap_t ccb_dmamap; struct scsi_xfer *ccb_xs; - int (*ccb_done)(struct ami_softc *sc, + void (*ccb_done)(struct ami_softc *sc, struct ami_ccb *ccb); volatile enum { |