Changeset 5a9ae994 in mainline for uspace/drv/bus/usb/xhci/hc.c


Ignore:
Timestamp:
2017-07-09T18:29:19Z (7 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
115f25b
Parents:
afa347e
Message:

Fixed label name and loop variable type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/hc.c

    rafa347e r5a9ae994  
    208208
    209209        if ((err = xhci_scratchpad_alloc(hc)))
    210                 goto err_scratchpad;
    211 
    212         return EOK;
    213 
    214 err_scratchpad:
     210                goto err_event_ring;
     211
     212        return EOK;
     213
     214err_event_ring:
    215215        xhci_event_ring_fini(&hc->event_ring);
    216216err_cmd_ring:
     
    437437        xhci_scratchpad_free(hc);
    438438
    439         /**
    440          * Idx 0 already deallocated by xhci_scratchpad_free.
    441          */
    442         for (int i = 1; i < hc->max_slots + 1; ++i) {
     439        /* Idx 0 already deallocated by xhci_scratchpad_free. */
     440        for (unsigned i = 1; i < hc->max_slots + 1; ++i) {
    443441                if (hc->dcbaa[i] != NULL) {
    444442                        free32(hc->dcbaa[i]);
Note: See TracChangeset for help on using the changeset viewer.