diff options
author | ken <ken@FreeBSD.org> | 2003-05-01 05:16:13 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2003-05-01 05:16:13 +0000 |
commit | 6aafb4d5db6da50c01748ec31e3a24714ceceb9b (patch) | |
tree | e8fc8b70f0db0305ff1ac313ea6d15feed570324 /sys/cam | |
parent | 9a40fc3cd6442d4a4d2634d5203878f337a625eb (diff) | |
download | FreeBSD-src-6aafb4d5db6da50c01748ec31e3a24714ceceb9b.zip FreeBSD-src-6aafb4d5db6da50c01748ec31e3a24714ceceb9b.tar.gz |
Fix compile errors on ia64 in dagetcapacity. Set block_len and maxsector
to 0 initially. It seems that the ia64 backend isn't as "smart" as the
i386 backend, which realized that those variables were only set or used
when error == 0, and thus were not used uninitialized.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index d372881..e3d744b 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -1785,6 +1785,8 @@ dagetcapacity(struct cam_periph *periph) int error; softc = (struct da_softc *)periph->softc; + block_len = 0; + maxsector = 0; error = 0; /* Do a read capacity */ |