From 13cb2a2930823027e97751cb6cfca1da569bb137 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Sun, 9 Oct 2011 15:12:05 +0000 Subject: [PATCH] Code cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42811 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/device/USBEndpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/device/USBEndpoint.cpp b/src/kits/device/USBEndpoint.cpp index c5120ba243..fd0d629f67 100644 --- a/src/kits/device/USBEndpoint.cpp +++ b/src/kits/device/USBEndpoint.cpp @@ -24,7 +24,7 @@ BUSBEndpoint::BUSBEndpoint(BUSBInterface *interface, uint32 index, int rawFD) command.endpoint_etc.alternate_index = fInterface->AlternateIndex(); command.endpoint_etc.endpoint_index = fIndex; if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_ENDPOINT_DESCRIPTOR_ETC, &command, - sizeof(command)) || command.config.status != B_USB_RAW_STATUS_SUCCESS) + sizeof(command)) || command.endpoint_etc.status != B_USB_RAW_STATUS_SUCCESS) memset(&fDescriptor, 0, sizeof(fDescriptor)); }