Changes in uspace/lib/usb/src/pipesinit.c [18cb870:dc04868] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/pipesinit.c
r18cb870 rdc04868 109 109 * @param mapping_count Number of endpoint mappings in @p mapping. 110 110 * @param found_endpoint Description of found endpoint. 111 * @param interface_number Number of currently processed interface.112 111 * @return Endpoint mapping corresponding to @p found_endpoint. 113 112 * @retval NULL No corresponding endpoint found. … … 115 114 static usb_endpoint_mapping_t *find_endpoint_mapping( 116 115 usb_endpoint_mapping_t *mapping, size_t mapping_count, 117 usb_endpoint_description_t *found_endpoint, 118 int interface_number) 116 usb_endpoint_description_t *found_endpoint) 119 117 { 120 118 while (mapping_count > 0) { 121 bool interface_number_fits = (mapping->interface_no < 0) 122 || (mapping->interface_no == interface_number); 123 124 bool endpoint_descriptions_fits = endpoint_fits_description( 125 mapping->description, found_endpoint); 126 127 if (interface_number_fits && endpoint_descriptions_fits) { 119 if (endpoint_fits_description(mapping->description, 120 found_endpoint)) { 128 121 return mapping; 129 122 } … … 176 169 */ 177 170 usb_endpoint_mapping_t *ep_mapping = find_endpoint_mapping(mapping, 178 mapping_count, &description , interface->interface_number);171 mapping_count, &description); 179 172 if (ep_mapping == NULL) { 180 173 return ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.