diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2007-05-20 16:49:09 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2007-05-20 16:49:09 +0000 |
commit | 6c7d0cff3fad5e2cccbb1481267c6ed91d22221e (patch) | |
tree | 97af3ba64273f9dc4e2e3b6e8bc9d382b9ca698b /sys/dev/hptmv | |
parent | c512bc298cd2f211091ff38a4973eb00159da9e5 (diff) | |
download | src-6c7d0cff3fad5e2cccbb1481267c6ed91d22221e.tar.gz src-6c7d0cff3fad5e2cccbb1481267c6ed91d22221e.zip |
Make gcc 4.2 happy by initiatlizing controller && channel prior
to a call to a function which *might* then initialize them.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=169798
Diffstat (limited to 'sys/dev/hptmv')
-rw-r--r-- | sys/dev/hptmv/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hptmv/ioctl.c b/sys/dev/hptmv/ioctl.c index e23d5219ccc4..829bc8c3cef5 100644 --- a/sys/dev/hptmv/ioctl.c +++ b/sys/dev/hptmv/ioctl.c @@ -151,7 +151,7 @@ ioctl_ReportEvent(UCHAR event, PVOID param) } event_queue_add(&e); if (event==ET_DEVICE_REMOVED) { - int controller, channel; + int controller = 0, channel = 0; get_disk_location(&((PVDevice)param)->u.disk, &controller, &channel); hpt_printk(("Device removed: controller %d channel %d\n", controller, channel)); } |