Changes in uspace/lib/usb/src/pipesinit.c [159b91f4:3954a63b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipesinit.c
r159b91f4 r3954a63b 121 121 usb_endpoint_mapping_t *mapping, size_t mapping_count, 122 122 usb_endpoint_description_t *found_endpoint, 123 int interface_number , int interface_setting)123 int interface_number) 124 124 { 125 125 while (mapping_count > 0) { … … 127 127 || (mapping->interface_no == interface_number); 128 128 129 bool interface_setting_fits = (mapping->interface_setting < 0)130 || (mapping->interface_setting == interface_setting);131 132 129 bool endpoint_descriptions_fits = endpoint_fits_description( 133 130 mapping->description, found_endpoint); 134 131 135 if (interface_number_fits 136 && interface_setting_fits 137 && endpoint_descriptions_fits) { 132 if (interface_number_fits && endpoint_descriptions_fits) { 138 133 return mapping; 139 134 } … … 186 181 */ 187 182 usb_endpoint_mapping_t *ep_mapping = find_endpoint_mapping(mapping, 188 mapping_count, &description, 189 interface->interface_number, interface->alternate_setting); 183 mapping_count, &description, interface->interface_number); 190 184 if (ep_mapping == NULL) { 191 185 return ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.