Changes in uspace/srv/devman/match.c [b72efe8:ba38f72c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
rb72efe8 rba38f72c 59 59 int get_match_score(driver_t *drv, dev_node_t *dev) 60 60 { 61 link_t *drv_head = &drv->match_ids.ids .head;62 link_t *dev_head = &dev->pfun->match_ids.ids .head;61 link_t *drv_head = &drv->match_ids.ids; 62 link_t *dev_head = &dev->pfun->match_ids.ids; 63 63 64 if (list_empty(&drv->match_ids.ids) || 65 list_empty(&dev->pfun->match_ids.ids)) { 64 if (list_empty(drv_head) || list_empty(dev_head)) 66 65 return 0; 67 }68 66 69 67 /* … … 72 70 int highest_score = 0; 73 71 74 link_t *drv_link = drv->match_ids.ids. head.next;72 link_t *drv_link = drv->match_ids.ids.next; 75 73 while (drv_link != drv_head) { 76 74 link_t *dev_link = dev_head->next;
Note:
See TracChangeset
for help on using the changeset viewer.