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

Changeset 5dd4294b in mainline


Ignore:
Timestamp:
2011-12-14T18:06:27Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
94bfc84
Parents:
a0487a2
Message:

libusb: Remove duplicit implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/ddfiface.c

    ra0487a2 r5dd4294b  
    9999{
    100100        assert(fun);
    101 
    102         async_sess_t *parent_sess =
    103             devman_parent_device_connect(EXCHANGE_SERIALIZE, fun->handle,
    104             IPC_FLAG_BLOCKING);
    105         if (!parent_sess)
    106                 return ENOMEM;
    107 
    108         async_exch_t *exch = async_exchange_begin(parent_sess);
    109         if (!exch) {
    110                 async_hangup(parent_sess);
    111                 return ENOMEM;
    112         }
    113 
    114         const int ret = usb_get_my_address(exch, address);
    115 
    116         async_exchange_end(exch);
    117         async_hangup(parent_sess);
    118 
    119         return ret;
     101        return usb_get_address_by_handle(fun->handle, address);
    120102}
    121103
Note: See TracChangeset for help on using the changeset viewer.