Changeset 2e5aea1 in mainline
- Timestamp:
- 2017-10-22T09:30:38Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c091a6
- Parents:
- 2b61945
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r2b61945 r2e5aea1 183 183 184 184 int err = ENOMEM; 185 usb_endpoint_t ep_num = ep->base.target.endpoint;185 const usb_endpoint_t ep_num = ep->base.target.endpoint; 186 186 187 187 assert(&dev->base == ep->base.device); … … 203 203 // Prepare input context. 204 204 xhci_input_ctx_t *ictx = malloc32(sizeof(xhci_input_ctx_t)); 205 const unsigned ep_idx = xhci_endpoint_index(ep); 205 206 if (!ictx) 206 207 goto err; … … 213 214 XHCI_INPUT_CTRL_CTX_DROP_CLEAR(ictx->ctrl_ctx, 1); 214 215 XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 0); 215 216 unsigned ep_idx = xhci_endpoint_index(ep);217 216 XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, ep_idx + 1); /* Preceded by slot ctx */ 218 217
Note:
See TracChangeset
for help on using the changeset viewer.