Changeset 2c091a6 in mainline
- Timestamp:
- 2017-10-22T10:02:38Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a4e26882
- Parents:
- 2e5aea1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/endpoint.c
r2e5aea1 r2c091a6 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);206 205 if (!ictx) 207 206 goto err; … … 214 213 XHCI_INPUT_CTRL_CTX_DROP_CLEAR(ictx->ctrl_ctx, 1); 215 214 XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, 0); 215 216 const unsigned ep_idx = xhci_endpoint_index(ep); 216 217 XHCI_INPUT_CTRL_CTX_ADD_SET(ictx->ctrl_ctx, ep_idx + 1); /* Preceded by slot ctx */ 217 218 … … 255 256 free32(ictx); 256 257 err: 257 dev->endpoints[ep_ idx] = NULL;258 dev->endpoints[ep_num] = NULL; 258 259 dev->active_endpoint_count--; 259 260 return err;
Note:
See TracChangeset
for help on using the changeset viewer.