diff options
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r-- | sys/scsi/scsiconf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 7eb632a4ba4..07ef3de9f96 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.100 2006/01/21 12:18:49 miod Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.101 2006/05/11 00:45:59 krw Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -190,7 +190,7 @@ scsibusactivate(dev, act) return (config_activate_children(dev, act)); } -int +int scsibusdetach(dev, type) struct device *dev; int type; @@ -205,7 +205,7 @@ scsibusdetach(dev, type) if (sb->sc_link[i] != NULL) free(sb->sc_link[i], M_DEVBUF); } - + free(sb->sc_link, M_DEVBUF); return (0); @@ -320,7 +320,7 @@ scsi_strvis(dst, src, len) while (len > 0 && (src[0] == ' ' || src[0] == '\t' || src[0] == '\n' || src[0] == '\0' || src[0] == 0xff)) ++src, --len; - while (len > 0 && (src[len-1] == ' ' || src[len-1] == '\t' || + while (len > 0 && (src[len-1] == ' ' || src[len-1] == '\t' || src[len-1] == '\n' || src[len-1] == '\0' || src[len-1] == 0xff)) --len; @@ -669,7 +669,7 @@ scsi_probedev(scsi, inqbuflun0, target, lun) } finger = (const struct scsi_quirk_inquiry_pattern *)scsi_inqmatch( - &inqbuf, scsi_quirk_patterns, + &inqbuf, scsi_quirk_patterns, sizeof(scsi_quirk_patterns)/sizeof(scsi_quirk_patterns[0]), sizeof(scsi_quirk_patterns[0]), &priority); @@ -680,7 +680,7 @@ scsi_probedev(scsi, inqbuflun0, target, lun) if ((inqbuf.version & SID_ANSII) >= 2) { if ((inqbuf.flags & SID_CmdQue) != 0) sc_link->quirks &= ~SDEV_NOTAGS; - if ((inqbuf.flags & SID_Sync) != 0) + if ((inqbuf.flags & SID_Sync) != 0) sc_link->quirks &= ~SDEV_NOSYNC; if ((inqbuf.flags & SID_WBus16) != 0) sc_link->quirks &= ~SDEV_NOWIDE; @@ -729,11 +729,11 @@ scsi_probedev(scsi, inqbuflun0, target, lun) scsi->sc_link[target][lun] = sc_link; - /* + /* * Generate a TEST_UNIT_READY command. This gives drivers waiting for * valid quirks data a chance to set wide/sync/tag options * appropriately. It also clears any outstanding ACA conditions that - * INQUIRY may leave behind. + * INQUIRY may leave behind. * * Do this now so that any messages generated by config_attach() do not * have negotiation messages inserted into their midst. |