Code cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
49774900fb
commit
13cb2a2930
@ -24,7 +24,7 @@ BUSBEndpoint::BUSBEndpoint(BUSBInterface *interface, uint32 index, int rawFD)
|
|||||||
command.endpoint_etc.alternate_index = fInterface->AlternateIndex();
|
command.endpoint_etc.alternate_index = fInterface->AlternateIndex();
|
||||||
command.endpoint_etc.endpoint_index = fIndex;
|
command.endpoint_etc.endpoint_index = fIndex;
|
||||||
if (ioctl(fRawFD, B_USB_RAW_COMMAND_GET_ENDPOINT_DESCRIPTOR_ETC, &command,
|
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));
|
memset(&fDescriptor, 0, sizeof(fDescriptor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user