Skip to content

Commit

Permalink
usb: initialise data element in Linux USB_DISCONNECT ioctl
Browse files Browse the repository at this point in the history
This isn't used, but leaving it empty causes valgrind noise.

Signed-off-by: Brad Hards <bradh@frogmouth.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
  • Loading branch information
bradh authored and Stefan Hajnoczi committed Apr 16, 2011
1 parent 94843f6 commit 021730f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usb-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration)
for (interface = 0; interface < nb_interfaces; interface++) {
ctrl.ioctl_code = USBDEVFS_DISCONNECT;
ctrl.ifno = interface;
ctrl.data = 0;
ret = ioctl(dev->fd, USBDEVFS_IOCTL, &ctrl);
if (ret < 0 && errno != ENODATA) {
perror("USBDEVFS_DISCONNECT");
Expand Down

0 comments on commit 021730f

Please sign in to comment.