Changes in uspace/lib/usbdev/src/pipesinit.c [816f5f4:58563585] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/pipesinit.c
r816f5f4 r58563585 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 esc.direction != USB_DIRECTION_BOTH) ||346 (pipe-> desc.transfer_type != USB_TRANSFER_CONTROL) ||347 (pipe-> desc.endpoint_no != 0)) {345 if ((pipe->direction != USB_DIRECTION_BOTH) || 346 (pipe->transfer_type != USB_TRANSFER_CONTROL) || 347 (pipe->endpoint_no != 0)) { 348 348 return EINVAL; 349 349 } … … 369 369 } 370 370 371 pipe-> desc.max_packet_size371 pipe->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.