Changes in uspace/drv/bus/usb/vhc/connhost.c [aa81adc:5203e256] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/connhost.c
raa81adc r5203e256 141 141 size_t max_packet_size, unsigned int interval) 142 142 { 143 /* TODO: Use usb_endpoint_manager_add_ep */ 144 VHC_DATA(vhc, fun); 145 146 endpoint_t *ep = endpoint_get( 147 address, endpoint, direction, transfer_type, USB_SPEED_FULL, 1); 143 VHC_DATA(vhc, fun); 144 145 endpoint_t *ep = malloc(sizeof(endpoint_t)); 148 146 if (ep == NULL) { 149 147 return ENOMEM; 150 148 } 151 149 152 int rc = usb_endpoint_manager_register_ep(&vhc->ep_manager, ep, 1); 150 int rc = endpoint_init(ep, address, endpoint, direction, transfer_type, 151 USB_SPEED_FULL, 1); 152 if (rc != EOK) { 153 free(ep); 154 return rc; 155 } 156 157 rc = usb_endpoint_manager_register_ep(&vhc->ep_manager, ep, 1); 153 158 if (rc != EOK) { 154 159 endpoint_destroy(ep);
Note:
See TracChangeset
for help on using the changeset viewer.