Changeset 2ca5a198 in mainline for uspace/drv/bus/usb/ehci


Ignore:
Timestamp:
2018-01-31T22:45:41Z (8 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
73a5857
Parents:
0247bd2
Message:

usb: fix some errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_batch.c

    r0247bd2 r2ca5a198  
    139139        }
    140140
    141         assert(batch_setup[ehci_batch->base.ep->transfer_type]);
     141        if (!batch_setup[ehci_batch->base.ep->transfer_type])
     142                return ENOTSUP;
     143
    142144        batch_setup[ehci_batch->base.ep->transfer_type](ehci_batch);
    143145
Note: See TracChangeset for help on using the changeset viewer.