Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/devices.c

    r4f380d06 r13101d06  
    9090usb_transaction_outcome_t virtdev_send_to_all(transaction_t *transaction)
    9191{
    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 
    10692        link_t *pos;
    10793        list_foreach(pos, &devices) {
     
    155141                        rc = (int)answer_rc;
    156142                }
    157 
    158                 /*
    159                  * If at least one device was able to accept this
    160                  * transaction and process it, we can announce success.
    161                  */
    162                 if (rc == EOK) {
    163                         outcome = USB_OUTCOME_OK;
    164                 }
    165143        }
    166144       
     
    200178                }
    201179                dprintf(4, "transaction on hub processed...");
    202                 outcome = USB_OUTCOME_OK;
    203180        }
    204181       
     
    207184         * real-life image.
    208185         */
    209         return outcome;
     186        return USB_OUTCOME_OK;
    210187}
    211188
Note: See TracChangeset for help on using the changeset viewer.