Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/match.c

    rc6c389ed r38b3baf  
    5555                match_id_t *tmp_ma_id;
    5656       
    57                 if (str_cmp(drv_id->id, dev_id->id) == 0) {
     57                if (0 == str_cmp(drv_id->id, dev_id->id)) {
    5858                        /*
    5959                         * We found a match.
     
    6767                 * list of match ids.
    6868                 */
    69                 if (drv_link->next != drv_head) {
     69                if (drv_head != drv_link->next) {
    7070                        tmp_ma_id = list_get_instance(drv_link->next,
    7171                            match_id_t, link);
     
    7979                 * list of match ids.
    8080                 */
    81                 if (dev_link->next != dev_head) {
     81                if (dev_head != dev_link->next) {
    8282                        tmp_ma_id = list_get_instance(dev_link->next,
    8383                            match_id_t, link);
     
    9999                }
    100100               
    101         } while (drv_link->next != drv_head && dev_link->next != dev_head);
     101        } while (drv_head != drv_link->next && dev_head != dev_link->next);
    102102       
    103103        return 0;
Note: See TracChangeset for help on using the changeset viewer.