Changeset 1a2227d in mainline for uspace/lib/usbdev/src/pipesinit.c


Ignore:
Timestamp:
2018-02-01T16:10:12Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
24c41ba1
Parents:
a1ce9bd
git-author:
Petr Manek <petr.manek@…> (2018-01-31 20:06:05)
git-committer:
Petr Manek <petr.manek@…> (2018-02-01 16:10:12)
Message:

usbdev: endpoint mapping tolerates multiple endpoints of the same type

File:
1 edited

Legend:

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

    ra1ce9bd r1a2227d  
    146146                if (interface_number_fits
    147147                    && interface_setting_fits
    148                     && endpoint_descriptions_fits) {
     148                    && endpoint_descriptions_fits
     149                    && !mapping->present) {
    149150                        return mapping;
    150151                }
     
    153154                mapping_count--;
    154155        }
     156
    155157        return NULL;
    156158}
Note: See TracChangeset for help on using the changeset viewer.