Changes in uspace/drv/bus/usb/vhc/main.c [58563585:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/vhc/main.c
r58563585 rb7fd2a0 49 49 }; 50 50 51 static int vhc_control_node(ddf_dev_t *dev, ddf_fun_t **fun)51 static errno_t vhc_control_node(ddf_dev_t *dev, ddf_fun_t **fun) 52 52 { 53 53 assert(dev); … … 63 63 } 64 64 ddf_fun_set_ops(*fun, &vhc_ops); 65 const int ret = ddf_fun_bind(*fun);65 const errno_t ret = ddf_fun_bind(*fun); 66 66 if (ret != EOK) { 67 67 ddf_fun_destroy(*fun); … … 77 77 }; 78 78 79 static int vhc_dev_add(ddf_dev_t *dev)79 static errno_t vhc_dev_add(ddf_dev_t *dev) 80 80 { 81 81 /* Initialize virtual structure */ 82 82 ddf_fun_t *ctl_fun = NULL; 83 int ret = vhc_control_node(dev, &ctl_fun);83 errno_t ret = vhc_control_node(dev, &ctl_fun); 84 84 if (ret != EOK) { 85 85 usb_log_error("Failed to setup control node.\n");
Note:
See TracChangeset
for help on using the changeset viewer.