Changeset 4594baa in mainline for uspace/lib/usbhost/src/bus.c
- Timestamp:
- 2017-10-22T16:38:00Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ee794529
- Parents:
- a4e26882
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/bus.c
ra4e26882 r4594baa 182 182 int bus_release_endpoint(bus_t *bus, endpoint_t *ep) 183 183 { 184 int err;185 186 184 assert(bus); 187 185 assert(ep); 188 186 189 187 fibril_mutex_lock(&bus->guard); 190 if ((err = bus->ops.release_endpoint(bus, ep))) 191 return err; 192 fibril_mutex_unlock(&bus->guard); 188 const int r = bus->ops.release_endpoint(bus, ep); 189 fibril_mutex_unlock(&bus->guard); 190 191 if (r) 192 return r; 193 193 194 194 /* Bus reference */
Note:
See TracChangeset
for help on using the changeset viewer.