Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hidpath.c

    r07525cd rfeeac0d  
    237237                    usb_hid_report_usage_path_t, report_item) {
    238238
    239                         if (USB_HID_SAME_USAGE_PAGE(report_item->usage_page,
    240                                 path_item->usage_page)) {
    241                                
    242                                 if (only_page == 0) {
    243                                         if (USB_HID_SAME_USAGE(report_item->usage,
    244                                             path_item->usage))
     239                        if(USB_HID_SAME_USAGE_PAGE(report_item->usage_page,
     240                                path_item->usage_page)){
     241
     242                                if(only_page == 0){
     243                                        if(USB_HID_SAME_USAGE(
     244                                                report_item->usage,
     245                                                path_item->usage)) {
     246
    245247                                                return EOK;
     248                                        }
    246249                                }
    247250                                else {
     
    265268                report_link = report_path->items.head.next;
    266269                path_link = path->items.head.next;
    267                
    268                 while ((report_link != &report_path->items.head) &&
    269                     (path_link != &path->items.head)) {
    270                        
     270
     271                while((report_link != &report_path->items.head) &&
     272                      (path_link != &path->items.head)) {
     273
    271274                        report_item = list_get_instance(report_link,
    272                             usb_hid_report_usage_path_t, rpath_items_link);
    273                        
     275                                usb_hid_report_usage_path_t, rpath_items_link);
     276
    274277                        path_item = list_get_instance(path_link,
    275278                                usb_hid_report_usage_path_t, rpath_items_link);
    276279
    277                         if (!USB_HID_SAME_USAGE_PAGE(report_item->usage_page,
    278                             path_item->usage_page) || ((only_page == 0) &&
     280                        if(!USB_HID_SAME_USAGE_PAGE(report_item->usage_page,
     281                                path_item->usage_page) || ((only_page == 0) &&
    279282                            !USB_HID_SAME_USAGE(report_item->usage,
    280                             path_item->usage))) {
     283                                path_item->usage))) {
     284
    281285                                return 1;
    282286                        } else {
     
    286290                }
    287291
    288                 if ((((flags & USB_HID_PATH_COMPARE_BEGIN) != 0) &&
    289                     (path_link == &path->items.head)) ||
    290                     ((report_link == &report_path->items.head) &&
    291                     (path_link == &path->items.head))) {
     292                if((((flags & USB_HID_PATH_COMPARE_BEGIN) != 0) &&
     293                        (path_link == &path->items.head)) ||
     294                   ((report_link == &report_path->items.head) &&
     295                        (path_link == &path->items.head))) {
     296
    292297                        return EOK;
    293                 } else {
     298                }
     299                else {
    294300                        return 1;
    295                 }
     301                }                                               
    296302                break;
    297303
Note: See TracChangeset for help on using the changeset viewer.