Changeset e50cd7f in mainline for uspace/lib/usb/src/hidreport.c
- Timestamp:
- 2011-04-17T19:17:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63517c2, cfbbe1d3
- Parents:
- ef354b6 (diff), 8595577b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidreport.c
ref354b6 re50cd7f 80 80 d = usb_dp_get_sibling_descriptor(&parser, &parser_data, 81 81 dev->descriptors.configuration, d); 82 ++i; 82 83 } 83 84 … … 118 119 uint16_t length = hid_desc->report_desc_info.length; 119 120 size_t actual_size = 0; 120 121 /*122 * Start session for the control transfer.123 */124 int sess_rc = usb_pipe_start_session(&dev->ctrl_pipe);125 if (sess_rc != EOK) {126 usb_log_warning("Failed to start a session: %s.\n",127 str_error(sess_rc));128 return sess_rc;129 }130 121 131 122 /* … … 161 152 "%u)\n", actual_size, length); 162 153 return EINVAL; 163 }164 165 /*166 * End session for the control transfer.167 */168 sess_rc = usb_pipe_end_session(&dev->ctrl_pipe);169 if (sess_rc != EOK) {170 usb_log_warning("Failed to end a session: %s.\n",171 str_error(sess_rc));172 free(*report_desc);173 *report_desc = NULL;174 return sess_rc;175 154 } 176 155
Note:
See TracChangeset
for help on using the changeset viewer.