Changeset 17fc40c in mainline for uspace/lib/usbhost/src/device_keeper.c
- Timestamp:
- 2011-05-18T16:25:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 030937e, 98d7550
- Parents:
- f58154c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/device_keeper.c
rf58154c5 r17fc40c 158 158 } 159 159 160 /** Find devman handled assigned to USB address. 160 /** Find devman handle assigned to USB address. 161 * Intentionally refuse to find handle of default address. 161 162 * 162 163 * @param[in] instance Device keeper structure to use. … … 170 171 assert(instance); 171 172 fibril_mutex_lock(&instance->guard); 172 if ((address < 0) || (address >= USB_ADDRESS_COUNT)) {173 if ((address <= 0) || (address >= USB_ADDRESS_COUNT)) { 173 174 fibril_mutex_unlock(&instance->guard); 174 175 return false;
Note:
See TracChangeset
for help on using the changeset viewer.