summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-cam.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-02-27 20:56:56 +0000
committernjl <njl@FreeBSD.org>2003-02-27 20:56:56 +0000
commit7f365cfefebdf21bfe222dd2b5e082bd00363b85 (patch)
treed3c9591f0b95c6de02d03f709435bdc1e06286b9 /sys/dev/ata/atapi-cam.c
parenta8b1fc289fc01adc82b94b08f106a10497335e39 (diff)
downloadFreeBSD-src-7f365cfefebdf21bfe222dd2b5e082bd00363b85.zip
FreeBSD-src-7f365cfefebdf21bfe222dd2b5e082bd00363b85.tar.gz
Zero cpi->target_sprt since atapi-cam does not support target mode. This
gets rid of annoying messages when targbh tries to attach to the ATA bus and gets rejected. MFC after: 1 day
Diffstat (limited to 'sys/dev/ata/atapi-cam.c')
-rw-r--r--sys/dev/ata/atapi-cam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c
index eb603bb..0d703c2 100644
--- a/sys/dev/ata/atapi-cam.c
+++ b/sys/dev/ata/atapi-cam.c
@@ -231,6 +231,7 @@ atapi_action(struct cam_sim *sim, union ccb *ccb)
cpi->version_num = 1;
cpi->hba_inquiry = 0;
+ cpi->target_sprt = 0;
cpi->hba_misc = 0;
cpi->hba_eng_cnt = 0;
bzero(cpi->vuhba_flags, sizeof(cpi->vuhba_flags));
OpenPOWER on IntegriCloud