Changeset 3842a955 in mainline for uspace/drv/ohci/endpoint_list.c


Ignore:
Timestamp:
2011-06-19T15:59:42Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26e7d6d
Parents:
9724d7f (diff), 74464e8 (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.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/endpoint_list.c

    r9724d7f r3842a955  
    103103                /* There are active EDs, get the last one */
    104104                hcd_endpoint_t *last = list_get_instance(
    105                     instance->endpoint_list.prev, hcd_endpoint_t, link);
    106                 assert(last);
     105                    list_last(&instance->endpoint_list), hcd_endpoint_t, link);
    107106                last_ed = last->ed;
    108107        }
     
    121120
    122121        hcd_endpoint_t *first = list_get_instance(
    123             instance->endpoint_list.next, hcd_endpoint_t, link);
     122            list_first(&instance->endpoint_list), hcd_endpoint_t, link);
    124123        usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).\n",
    125124                hcd_ep, instance->name, first, first->ed);
     
    153152        ed_t *prev_ed;
    154153        /* Remove from the hardware queue */
    155         if (instance->endpoint_list.next == &hcd_ep->link) {
     154        if (list_first(&instance->endpoint_list) == &hcd_ep->link) {
    156155                /* I'm the first one here */
    157156                prev_ed = instance->list_head;
Note: See TracChangeset for help on using the changeset viewer.