Changeset 3f03199 in mainline for uspace/lib/usbhost/src/usb_endpoint_manager.c
- Timestamp:
- 2013-09-15T06:33:53Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9348862
- Parents:
- dd7078c (diff), 1c0cef0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb_endpoint_manager.c
rdd7078c r3f03199 91 91 if (address < 0) 92 92 return NULL; 93 list_foreach(*get_list(instance, address), iterator) { 94 endpoint_t *ep = endpoint_get_instance(iterator); 93 list_foreach(*get_list(instance, address), link, endpoint_t, ep) { 95 94 if (ep_match(ep, address, endpoint, direction)) 96 95 return ep; … … 384 383 385 384 fibril_mutex_lock(&instance->guard); 386 list_foreach(*get_list(instance, target.address), it) { 387 endpoint_t *ep = endpoint_get_instance(it); 385 list_foreach(*get_list(instance, target.address), link, endpoint_t, ep) { 388 386 if ((ep->address == target.address) 389 387 && (all || ep->endpoint == target.endpoint)) { … … 417 415 instance->devices[address].occupied = false; 418 416 419 list_foreach(*get_list(instance, address), iterator) { 420 endpoint_t *ep = endpoint_get_instance(iterator); 417 list_t *list = get_list(instance, address); 418 for (link_t *link = list_first(list); link != NULL; ) { 419 endpoint_t *ep = list_get_instance(link, endpoint_t, link); 420 link = list_next(link, list); 421 421 if (ep->address == address) { 422 iterator = iterator->next;423 422 list_remove(&ep->link); 424 423 if (callback)
Note:
See TracChangeset
for help on using the changeset viewer.