Changeset 5a6cc679 in mainline for uspace/lib/usbdev/src/devpoll.c
- Timestamp:
- 2018-01-31T02:21:24Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a0a9cc2
- Parents:
- 132ab5d1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/devpoll.c
r132ab5d1 r5a6cc679 103 103 * @return Always EOK. 104 104 */ 105 static int polling_fibril(void *arg)105 static errno_t polling_fibril(void *arg) 106 106 { 107 107 assert(arg); … … 130 130 while (failed_attempts <= polling->max_failures) { 131 131 size_t actual_size; 132 const int rc = usb_pipe_read(pipe, polling->buffer,132 const errno_t rc = usb_pipe_read(pipe, polling->buffer, 133 133 polling->request_size, &actual_size); 134 134 … … 233 233 * @retval EOK New fibril polling the device was already started. 234 234 */ 235 int usb_polling_start(usb_polling_t *polling)235 errno_t usb_polling_start(usb_polling_t *polling) 236 236 { 237 237 if (!polling || !polling->device || !polling->ep_mapping || !polling->on_data) … … 272 272 * @retval EOK Polling fibril has been successfully terminated. 273 273 */ 274 int usb_polling_join(usb_polling_t *polling)275 { 276 int rc;274 errno_t usb_polling_join(usb_polling_t *polling) 275 { 276 errno_t rc; 277 277 if (!polling) 278 278 return EBADMEM;
Note:
See TracChangeset
for help on using the changeset viewer.