Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/pipesinit.c

    r18cb870 rdc04868  
    109109 * @param mapping_count Number of endpoint mappings in @p mapping.
    110110 * @param found_endpoint Description of found endpoint.
    111  * @param interface_number Number of currently processed interface.
    112111 * @return Endpoint mapping corresponding to @p found_endpoint.
    113112 * @retval NULL No corresponding endpoint found.
     
    115114static usb_endpoint_mapping_t *find_endpoint_mapping(
    116115    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)
    119117{
    120118        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)) {
    128121                        return mapping;
    129122                }
     
    176169         */
    177170        usb_endpoint_mapping_t *ep_mapping = find_endpoint_mapping(mapping,
    178             mapping_count, &description, interface->interface_number);
     171            mapping_count, &description);
    179172        if (ep_mapping == NULL) {
    180173                return ENOENT;
Note: See TracChangeset for help on using the changeset viewer.