Changeset 1433ecda in mainline for uspace/lib/usb/src/port.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/port.c
r47b2d7e3 r1433ecda 66 66 static int enumerate_worker(void *arg) 67 67 { 68 struct enumerate_worker_args * 68 struct enumerate_worker_args *const args = arg; 69 69 usb_port_t *port = args->port; 70 70 usb_port_enumerate_t handler = args->handler; … … 84 84 assert(port->state == PORT_CONNECTING); 85 85 86 port->state = handler(port) 87 ? PORT_DISABLED 88 : PORT_ENUMERATED; 86 port->state = handler(port) ? PORT_DISABLED : PORT_ENUMERATED; 89 87 90 88 out: … … 143 141 static int remove_worker(void *arg) 144 142 { 145 struct remove_worker_args * 143 struct remove_worker_args *const args = arg; 146 144 usb_port_t *port = args->port; 147 145 usb_port_remove_t handler = args->handler;
Note:
See TracChangeset
for help on using the changeset viewer.