diff options
author | scottl <scottl@FreeBSD.org> | 2006-01-14 16:01:01 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2006-01-14 16:01:01 +0000 |
commit | 801f6ef27ba7ef2c1ee268a34b31d70a31cd3852 (patch) | |
tree | 35f1b5da7a06d68a1731aaca3d336552fa94e72b /sys/dev/asr/asr.c | |
parent | 13ebfcda1cbf3786bd81c4c6a6f38110631b895e (diff) | |
download | FreeBSD-src-801f6ef27ba7ef2c1ee268a34b31d70a31cd3852.zip FreeBSD-src-801f6ef27ba7ef2c1ee268a34b31d70a31cd3852.tar.gz |
Don't allocate an asr_ccb in asr_attach, it hasn't been needed for years.
Diffstat (limited to 'sys/dev/asr/asr.c')
-rw-r--r-- | sys/dev/asr/asr.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index 5349d4e..c160d76 100644 --- a/sys/dev/asr/asr.c +++ b/sys/dev/asr/asr.c @@ -2301,7 +2301,6 @@ asr_attach(device_t dev) PI2O_LCT_ENTRY Device; Asr_softc_t *sc, **ha; struct scsi_inquiry_data *iq; - union asr_ccb *ccb; int bus, size, unit; sc = device_get_softc(dev); @@ -2523,13 +2522,6 @@ asr_attach(device_t dev) printf (" %d channel, %d CCBs, Protocol I2O\n", sc->ha_MaxBus + 1, (sc->ha_QueueSize > MAX_INBOUND) ? MAX_INBOUND : sc->ha_QueueSize); - /* - * fill in the prototype cam_path. - */ - if ((ccb = asr_alloc_ccb(sc)) == NULL) { - device_printf(dev, "CAM could not be notified of asynchronous callback parameters\n"); - return(ENOMEM); - } for (bus = 0; bus <= sc->ha_MaxBus; ++bus) { struct cam_devq * devq; int QueueSize = sc->ha_QueueSize; @@ -2570,7 +2562,7 @@ asr_attach(device_t dev) continue; } } - asr_free_ccb(ccb); + /* * Generate the device node information */ |