Changeset 6bec59b in mainline for uspace/drv/ohci/hc.c
- Timestamp:
- 2011-04-08T13:58:45Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f98b8269
- Parents:
- 6acc80f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ohci/hc.c
r6acc80f3 r6bec59b 59 59 &instance->manager, hub_address, hub_fun->handle); 60 60 61 endpoint_t *ep = malloc(sizeof(endpoint_t)); 62 assert(ep); 63 int ret = endpoint_init(ep, hub_address, 0, USB_DIRECTION_BOTH, 64 USB_TRANSFER_CONTROL, USB_SPEED_FULL, 64); 65 assert(ret == EOK); 66 ret = usb_endpoint_manager_register_ep(&instance->ep_manager, ep, 0); 67 assert(ret == EOK); 68 61 69 char *match_str = NULL; 62 intret = asprintf(&match_str, "usb&class=hub");63 ret = (match_str == NULL) ? ret : EOK;70 ret = asprintf(&match_str, "usb&class=hub"); 71 // ret = (match_str == NULL) ? ret : EOK; 64 72 if (ret < 0) { 65 usb_log_error("Failed to create root hub match-id string.\n"); 73 usb_log_error( 74 "Failed(%d) to create root hub match-id string.\n", ret); 66 75 return ret; 67 76 }
Note:
See TracChangeset
for help on using the changeset viewer.