Changeset a045ab1 in mainline for uspace/lib/usb/src/resolve.c


Ignore:
Timestamp:
2011-12-11T13:55:20Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c202c5
Parents:
6df14c5
Message:

libusb: Move USB dev functions to separate header/source file

File:
1 edited

Legend:

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

    r6df14c5 ra045ab1  
    3434 */
    3535#include <inttypes.h>
     36#include <usb/dev.h>
    3637#include <usb/hc.h>
    3738#include <devman.h>
     
    7778    devman_handle_t *dev_handle)
    7879{
    79         int rc;
    8080        usb_hc_connection_t conn;
    81 
    8281        usb_hc_connection_initialize(&conn, hc_handle);
    83         rc = usb_hc_connection_open(&conn);
    84         if (rc != EOK) {
    85                 return rc;
    86         }
    87 
    88         rc = usb_hc_get_handle_by_address(&conn, addr, dev_handle);
    89 
    90         usb_hc_connection_close(&conn);
     82
     83        const int rc = usb_hc_get_handle_by_address(&conn, addr, dev_handle);
    9184
    9285        return rc;
Note: See TracChangeset for help on using the changeset viewer.