Changes in / [c979591b:b93d637] in mainline
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/devices.c
rc979591b rb93d637 90 90 usb_transaction_outcome_t virtdev_send_to_all(transaction_t *transaction) 91 91 { 92 /* For easier debugging. */93 switch (transaction->type) {94 case USBVIRT_TRANSACTION_SETUP:95 case USBVIRT_TRANSACTION_OUT:96 transaction->actual_len = transaction->len;97 break;98 case USBVIRT_TRANSACTION_IN:99 transaction->actual_len = 0;100 break;101 default:102 assert(false && "unreachable branch in switch()");103 }104 usb_transaction_outcome_t outcome = USB_OUTCOME_BABBLE;105 106 92 link_t *pos; 107 93 list_foreach(pos, &devices) { … … 155 141 rc = (int)answer_rc; 156 142 } 157 158 /*159 * If at least one device was able to accept this160 * transaction and process it, we can announce success.161 */162 if (rc == EOK) {163 outcome = USB_OUTCOME_OK;164 }165 143 } 166 144 … … 200 178 } 201 179 dprintf(4, "transaction on hub processed..."); 202 outcome = USB_OUTCOME_OK;203 180 } 204 181 … … 207 184 * real-life image. 208 185 */ 209 return outcome;186 return USB_OUTCOME_OK; 210 187 } 211 188 -
uspace/lib/drv/generic/remote_usbhc.c
rc979591b rb93d637 243 243 244 244 // FIXME - answer according to outcome 245 ipc_answer_0(trans->caller, outcome);245 ipc_answer_0(trans->caller, EOK); 246 246 247 247 free(trans); … … 254 254 255 255 // FIXME - answer according to outcome 256 ipc_answer_1(trans->caller, outcome, (sysarg_t)trans);256 ipc_answer_1(trans->caller, EOK, (sysarg_t)trans); 257 257 258 258 trans->size = actual_size;
Note:
See TracChangeset
for help on using the changeset viewer.