Changeset 7711296 in mainline for uspace/lib/usbdev/src/hub.c


Ignore:
Timestamp:
2011-11-30T16:08:14Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9776ae5
Parents:
9dbfd288
Message:

libusbhost, libusbdev: Minor fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/hub.c

    r9dbfd288 r7711296  
    227227                return EINVAL;
    228228
    229         // FIXME: this is awful, we are accessing directly the structure.
    230229        // TODO: Why not use provided connection?
    231         usb_hc_connection_t hc_conn = {
    232                 .hc_handle = connection->hc_handle,
    233                 .hc_sess = NULL
    234         };
     230        usb_hc_connection_t hc_conn;
     231        usb_hc_connection_initialize(&hc_conn, connection->hc_handle);
    235232
    236233        int rc;
Note: See TracChangeset for help on using the changeset viewer.