Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 030937e in mainline


Ignore:
Timestamp:
2011-05-18T20:17:00Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
70c85320, 98d7550
Parents:
02cacce (diff), 17fc40c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Development branch changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/device_keeper.c

    r02cacce r030937e  
    158158}
    159159
    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.
    161162 *
    162163 * @param[in] instance Device keeper structure to use.
     
    170171        assert(instance);
    171172        fibril_mutex_lock(&instance->guard);
    172         if ((address < 0) || (address >= USB_ADDRESS_COUNT)) {
     173        if ((address <= 0) || (address >= USB_ADDRESS_COUNT)) {
    173174                fibril_mutex_unlock(&instance->guard);
    174175                return false;
Note: See TracChangeset for help on using the changeset viewer.