diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2007-02-21 07:46:40 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2007-02-21 07:46:40 +0000 |
commit | 4d8a89236cdc28c520bb2f5374dd52c665725f90 (patch) | |
tree | 34b7d21ab3c97e7402cf8e064da9232311d19986 /sys/dev | |
parent | 3d196e1a9149230cea336ae9ce43977c10128f9d (diff) | |
download | FreeBSD-src-4d8a89236cdc28c520bb2f5374dd52c665725f90.zip FreeBSD-src-4d8a89236cdc28c520bb2f5374dd52c665725f90.tar.gz |
Initialise {transport,protocol}{,_version} fields during a PATH_INQ to avoid a
warning message.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/umass.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index dc036e6..f12411e 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -2570,6 +2570,10 @@ umass_cam_action(struct cam_sim *sim, union ccb *ccb) strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); cpi->unit_number = cam_sim_unit(sim); cpi->bus_id = device_get_unit(sc->sc_dev); + cpi->protocol = PROTO_SCSI; + cpi->protocol_version = SCSI_REV_2; + cpi->transport = XPORT_USB; + cpi->transport_version = 0; if (sc == NULL) { cpi->base_transfer_speed = 0; @@ -2609,7 +2613,7 @@ umass_cam_action(struct cam_sim *sim, union ccb *ccb) cts->protocol = PROTO_SCSI; cts->protocol_version = SCSI_REV_2; cts->transport = XPORT_USB; - cts->transport_version = XPORT_VERSION_UNSPECIFIED; + cts->transport_version = 0; cts->xport_specific.valid = 0; |