Changeset 078e0e6 in mainline for uspace/drv/bus/usb/xhci/rh.c
- Timestamp:
- 2017-10-05T16:21:02Z (6 years ago)
- Branches:
- lfn, master, serial
- Children:
- e9e24f2
- Parents:
- 4930b15
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/rh.c
r4930b15 r078e0e6 103 103 // xhci_cmd_fini(&cmd); 104 104 // 105 // xhci_input_ctx_t *ictx = malloc 32(sizeof(xhci_input_ctx_t));105 // xhci_input_ctx_t *ictx = malloc(sizeof(xhci_input_ctx_t)); 106 106 // if (!ictx) { 107 107 // return ENOMEM; … … 119 119 // XHCI_SLOT_ROUTE_STRING_SET(ictx->slot_ctx, route_str); 120 120 // 121 // xhci_trb_ring_t *ep_ring = malloc 32(sizeof(xhci_trb_ring_t));121 // xhci_trb_ring_t *ep_ring = malloc(sizeof(xhci_trb_ring_t)); 122 122 // if (!ep_ring) { 123 123 // err = ENOMEM; … … 144 144 // 145 145 // // TODO: What's the alignment? 146 // xhci_device_ctx_t *dctx = malloc 32(sizeof(xhci_device_ctx_t));146 // xhci_device_ctx_t *dctx = malloc(sizeof(xhci_device_ctx_t)); 147 147 // if (!dctx) { 148 148 // err = ENOMEM; … … 171 171 // err_dctx: 172 172 // if (dctx) { 173 // free 32(dctx);173 // free(dctx); 174 174 // hc->dcbaa[slot_id] = 0; 175 175 // memset(&hc->dcbaa_virt[slot_id], 0, sizeof(xhci_virt_device_ctx_t)); … … 178 178 // if (ep_ring) { 179 179 // xhci_trb_ring_fini(ep_ring); 180 // free 32(ep_ring);180 // free(ep_ring); 181 181 // } 182 182 // err_ictx: 183 // free 32(ictx);183 // free(ictx); 184 184 // return err; 185 185 // }
Note: See TracChangeset
for help on using the changeset viewer.