Changes in uspace/lib/usb/src/hidreport.c [8fd4ba0:15a9e63] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidreport.c
r8fd4ba0 r15a9e63 119 119 uint16_t length = hid_desc->report_desc_info.length; 120 120 size_t actual_size = 0; 121 122 /* 123 * Start session for the control transfer. 124 */ 125 int sess_rc = usb_pipe_start_session(&dev->ctrl_pipe); 126 if (sess_rc != EOK) { 127 usb_log_warning("Failed to start a session: %s.\n", 128 str_error(sess_rc)); 129 return sess_rc; 130 } 121 131 122 132 /* … … 152 162 "%u)\n", actual_size, length); 153 163 return EINVAL; 164 } 165 166 /* 167 * End session for the control transfer. 168 */ 169 sess_rc = usb_pipe_end_session(&dev->ctrl_pipe); 170 if (sess_rc != EOK) { 171 usb_log_warning("Failed to end a session: %s.\n", 172 str_error(sess_rc)); 173 free(*report_desc); 174 *report_desc = NULL; 175 return sess_rc; 154 176 } 155 177
Note:
See TracChangeset
for help on using the changeset viewer.