Changeset 296d22fc in mainline for uspace/lib/usbhost/src/endpoint.c
- Timestamp:
- 2018-01-25T02:05:57Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa4b12d5
- Parents:
- d369b3b
- git-author:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 02:03:48)
- git-committer:
- Ondřej Hlavatý <aearsis@…> (2018-01-25 02:05:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/endpoint.c
rd369b3b r296d22fc 97 97 static inline void endpoint_destroy(endpoint_t *ep) 98 98 { 99 const bus_ops_t *ops = BUS_OPS_LOOKUP(get_bus_ops(ep), endpoint_destroy);100 if (ops ) {99 const bus_ops_t *ops = get_bus_ops(ep); 100 if (ops->endpoint_destroy) { 101 101 ops->endpoint_destroy(ep); 102 102 } else { … … 237 237 } 238 238 239 const bus_ops_t *ops = BUS_OPS_LOOKUP(device->bus->ops, batch_schedule);240 if (!ops ) {239 const bus_ops_t *ops = device->bus->ops; 240 if (!ops->batch_schedule) { 241 241 usb_log_error("HCD does not implement scheduler."); 242 242 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.