Changeset 816f5f4 in mainline for uspace/lib/usbdev/src/pipesinit.c
- Timestamp:
- 2017-10-15T16:55:48Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b2f69e
- Parents:
- 2770b66
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipesinit.c
r2770b66 r816f5f4 288 288 if (config_descriptor == NULL) 289 289 return EBADMEM; 290 290 291 291 if (config_descriptor_size < 292 292 sizeof(usb_standard_configuration_descriptor_t)) { … … 343 343 static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE); 344 344 345 if ((pipe->d irection != USB_DIRECTION_BOTH) ||346 (pipe-> transfer_type != USB_TRANSFER_CONTROL) ||347 (pipe-> endpoint_no != 0)) {345 if ((pipe->desc.direction != USB_DIRECTION_BOTH) || 346 (pipe->desc.transfer_type != USB_TRANSFER_CONTROL) || 347 (pipe->desc.endpoint_no != 0)) { 348 348 return EINVAL; 349 349 } … … 369 369 } 370 370 371 pipe-> max_packet_size371 pipe->desc.max_packet_size 372 372 = dev_descr_start[DEV_DESCR_MAX_PACKET_SIZE_OFFSET]; 373 373
Note:
See TracChangeset
for help on using the changeset viewer.