Changes in uspace/drv/ohci/endpoint_list.c [b72efe8:d736fe38] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/endpoint_list.c
rb72efe8 rd736fe38 103 103 /* There are active EDs, get the last one */ 104 104 hcd_endpoint_t *last = list_get_instance( 105 list_last(&instance->endpoint_list), hcd_endpoint_t, link); 105 instance->endpoint_list.prev, hcd_endpoint_t, link); 106 assert(last); 106 107 last_ed = last->ed; 107 108 } … … 120 121 121 122 hcd_endpoint_t *first = list_get_instance( 122 list_first(&instance->endpoint_list), hcd_endpoint_t, link);123 instance->endpoint_list.next, hcd_endpoint_t, link); 123 124 usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).\n", 124 125 hcd_ep, instance->name, first, first->ed); … … 152 153 ed_t *prev_ed; 153 154 /* Remove from the hardware queue */ 154 if ( list_first(&instance->endpoint_list)== &hcd_ep->link) {155 if (instance->endpoint_list.next == &hcd_ep->link) { 155 156 /* I'm the first one here */ 156 157 prev_ed = instance->list_head;
Note:
See TracChangeset
for help on using the changeset viewer.