Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/pipesinit.c

    r816f5f4 r58563585  
    288288        if (config_descriptor == NULL)
    289289                return EBADMEM;
    290 
     290       
    291291        if (config_descriptor_size <
    292292            sizeof(usb_standard_configuration_descriptor_t)) {
     
    343343        static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);
    344344
    345         if ((pipe->desc.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)) {
    348348                return EINVAL;
    349349        }
     
    369369        }
    370370
    371         pipe->desc.max_packet_size
     371        pipe->max_packet_size
    372372            = dev_descr_start[DEV_DESCR_MAX_PACKET_SIZE_OFFSET];
    373373
Note: See TracChangeset for help on using the changeset viewer.