Changeset c028b22 in mainline for uspace/srv/devman/match.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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/srv/devman/match.c

    r4e36219 rc028b22  
    5959int get_match_score(driver_t *drv, dev_node_t *dev)
    6060{
    61         link_t *drv_head = &drv->match_ids.ids;
    62         link_t *dev_head = &dev->pfun->match_ids.ids;
     61        link_t *drv_head = &drv->match_ids.ids.head;
     62        link_t *dev_head = &dev->pfun->match_ids.ids.head;
    6363       
    64         if (list_empty(drv_head) || list_empty(dev_head))
     64        if (list_empty(&drv->match_ids.ids) ||
     65            list_empty(&dev->pfun->match_ids.ids)) {
    6566                return 0;
     67        }
    6668       
    6769        /*
     
    7072        int highest_score = 0;
    7173       
    72         link_t *drv_link = drv->match_ids.ids.next;
     74        link_t *drv_link = drv->match_ids.ids.head.next;
    7375        while (drv_link != drv_head) {
    7476                link_t *dev_link = dev_head->next;
Note: See TracChangeset for help on using the changeset viewer.