Ignore:
File:
1 edited

Legend:

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

    r56bdd9a4 r27ed734c  
    3636#include <devman.h>
    3737#include <async.h>
    38 #include <usb_iface.h>
    3938#include <usb/ddfiface.h>
    4039#include <usb/hc.h>
     
    105104
    106105        async_exch_t *exch = async_exchange_begin(parent_sess);
    107         if (!exch) {
    108                 async_hangup(parent_sess);
    109                 return ENOMEM;
    110         }
    111106
    112         const int ret = usb_get_my_address(exch, address);
     107        sysarg_t addr;
     108        int rc = async_req_1_1(exch, DEV_IFACE_ID(USB_DEV_IFACE),
     109            IPC_M_USB_GET_MY_ADDRESS, &addr);
    113110
    114111        async_exchange_end(exch);
    115112        async_hangup(parent_sess);
    116113
    117         return ret;
     114        if (rc != EOK)
     115                return rc;
     116
     117        if (address != NULL)
     118                *address = (usb_address_t) addr;
     119
     120        return EOK;
    118121}
    119122
Note: See TracChangeset for help on using the changeset viewer.