Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usb.c

    r831aa466 ra46e56b  
    7777                return EBADMEM;
    7878
    79         sysarg_t address, depth, speed, handle, iface;
     79        usb_device_desc_t tmp_desc;
    8080
    8181        const errno_t ret = async_req_1_5(exch, DEV_IFACE_ID(USB_DEV_IFACE),
    82             IPC_M_USB_GET_MY_DESCRIPTION, &address, &depth, &speed, &handle,
    83             &iface);
    84         if (ret == EOK && desc) {
    85                 *desc = (usb_device_desc_t) {
    86                         .address = address,
    87                         .depth = depth,
    88                         .speed = speed,
    89                         .handle = handle,
    90                         .iface = iface,
    91                 };
    92         }
    93 
     82            IPC_M_USB_GET_MY_DESCRIPTION,
     83            (sysarg_t *) &tmp_desc.address,
     84            (sysarg_t *) &tmp_desc.depth,
     85            (sysarg_t *) &tmp_desc.speed,
     86            &tmp_desc.handle,
     87            (sysarg_t *) &tmp_desc.iface);
     88        if (ret == EOK && desc)
     89                *desc = tmp_desc;
    9490        return ret;
    9591}
Note: See TracChangeset for help on using the changeset viewer.