Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2e5aea1 in mainline


Ignore:
Timestamp:
2017-10-22T09:30:38Z (3 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
master
Children:
2c091a6
Parents:
2b61945
Message:

Moved around a declaration. The OS builds again.

File:
1 edited

Legend:

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

    r2b61945 r2e5aea1  
    183183
    184184        int err = ENOMEM;
    185         usb_endpoint_t ep_num = ep->base.target.endpoint;
     185        const usb_endpoint_t ep_num = ep->base.target.endpoint;
    186186
    187187        assert(&dev->base == ep->base.device);
     
    203203        // Prepare input context.
    204204        xhci_input_ctx_t *ictx = malloc32(sizeof(xhci_input_ctx_t));
     205        const unsigned ep_idx = xhci_endpoint_index(ep);
    205206        if (!ictx)
    206207                goto err;
     
    213214        XHCI_INPUT_CTRL_CTX_DROP_CLEAR(ictx->ctrl_ctx, 1);
    214215        XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 0);
    215 
    216         unsigned ep_idx = xhci_endpoint_index(ep);
    217216        XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, ep_idx + 1); /* Preceded by slot ctx */
    218217
Note: See TracChangeset for help on using the changeset viewer.