Initialize unused fields in ioctl arguments
This change is essentially cosmetic: Set fields of structs passed to the kernel via ioctl so that valgrind will not complain about them. Signed-off-by: Jay Fenlason <fenlason@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (changelog, comments)
This commit is contained in:
parent
4e2fd98144
commit
72e5368aed
|
@ -140,6 +140,8 @@ int fw_iso_xmit_start(raw1394handle_t handle, int start_on_cycle,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (fwhandle->iso.prebuffer <= fwhandle->iso.packet_count) {
|
if (fwhandle->iso.prebuffer <= fwhandle->iso.packet_count) {
|
||||||
|
start_iso.sync = 0; /* unused */
|
||||||
|
start_iso.tags = 0; /* unused */
|
||||||
start_iso.cycle = start_on_cycle;
|
start_iso.cycle = start_on_cycle;
|
||||||
start_iso.handle = 0;
|
start_iso.handle = 0;
|
||||||
|
|
||||||
|
|
1
src/fw.c
1
src/fw.c
|
@ -1406,6 +1406,7 @@ iso_resource_modify(raw1394handle_t handle, unsigned int bandwidth,
|
||||||
resource.closure = ptr_to_u64(&event);
|
resource.closure = ptr_to_u64(&event);
|
||||||
resource.channels = channel >= 0 ? 1ULL << channel : 0;
|
resource.channels = channel >= 0 ? 1ULL << channel : 0;
|
||||||
resource.bandwidth = bandwidth;
|
resource.bandwidth = bandwidth;
|
||||||
|
resource.handle = 0; /* unused */
|
||||||
|
|
||||||
ioctl_nr = mode == RAW1394_MODIFY_ALLOC ?
|
ioctl_nr = mode == RAW1394_MODIFY_ALLOC ?
|
||||||
FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE :
|
FW_CDEV_IOC_ALLOCATE_ISO_RESOURCE_ONCE :
|
||||||
|
|
Reference in New Issue