diff options
author | eivind <eivind@FreeBSD.org> | 1998-08-06 20:57:33 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-08-06 20:57:33 +0000 |
commit | 4ffa6467e99ca489da28e79490de7e1dc5e5e08f (patch) | |
tree | d02dcba0802005d87039887addcdec55f3a35a3f /sys/dev/dpt/dpt_scsi.c | |
parent | d99e0e91df6900b3feb5f4c6b1344d2335d13cf3 (diff) | |
download | FreeBSD-src-4ffa6467e99ca489da28e79490de7e1dc5e5e08f.zip FreeBSD-src-4ffa6467e99ca489da28e79490de7e1dc5e5e08f.tar.gz |
Fix some things Simon had broken, basically making LINT compile again.
Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
Pointed out by: bde
Diffstat (limited to 'sys/dev/dpt/dpt_scsi.c')
-rw-r--r-- | sys/dev/dpt/dpt_scsi.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c index a0a2cc6..ca24ea4 100644 --- a/sys/dev/dpt/dpt_scsi.c +++ b/sys/dev/dpt/dpt_scsi.c @@ -64,7 +64,7 @@ * 3. dpt_handle_timeouts potentially inserts into the queue */ -#ident "$Id: dpt_scsi.c,v 1.32 1998/08/03 16:45:12 root Exp root $" +#ident "$Id: dpt_scsi.c,v 1.8 1998/08/05 00:54:36 eivind Exp $" #define _DPT_C_ @@ -389,20 +389,14 @@ dpt_raid_busy(dpt_softc_t * dpt) */ static void -dpt_reset_hba(int minor) +dpt_reset_hba(dpt_softc_t *dpt) { - dpt_softc_t *dpt; eata_ccb_t *ccb; int ospl; dpt_ccb_t dccb, *dccbp; int result; struct scsi_xfer *xs; - if ((dpt = dpt_minor2softc(minor)) == NULL) { - printf("DPT: Ignoring invalid minor %d in dpt_reset_hba\n", minor); - return; - } - /* Prepare a control block. The SCSI command part is immaterial */ dccb.xs = NULL; dccb.flags = 0; @@ -3246,7 +3240,7 @@ static INLINE_Q void dpt_Qpush_free(dpt_softc_t * dpt, dpt_ccb_t * ccb) { #ifdef DPT_FREELIST_IS_STACK - TAILQ_INSERT_HEAD(&dpt->free_ccbs, ccb, links) + TAILQ_INSERT_HEAD(&dpt->free_ccbs, ccb, links); #else TAILQ_INSERT_TAIL(&dpt->free_ccbs, ccb, links); #endif |