Changeset a045ab1 in mainline for uspace/lib/usb/src/resolve.c
- Timestamp:
- 2011-12-11T13:55:20Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c202c5
- Parents:
- 6df14c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/resolve.c
r6df14c5 ra045ab1 34 34 */ 35 35 #include <inttypes.h> 36 #include <usb/dev.h> 36 37 #include <usb/hc.h> 37 38 #include <devman.h> … … 77 78 devman_handle_t *dev_handle) 78 79 { 79 int rc;80 80 usb_hc_connection_t conn; 81 82 81 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); 91 84 92 85 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.