Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmid/main.c

    r6785b538 rb7fd2a0  
    4949 * @return Error code.
    5050 */
    51 static int usbmid_device_add(usb_device_t *dev)
     51static errno_t usbmid_device_add(usb_device_t *dev)
    5252{
    5353        usb_log_info("Taking care of new MID `%s'.\n", usb_device_get_name(dev));
     
    6161 * @return Error code.
    6262 */
    63 static int usbmid_device_remove(usb_device_t *dev)
     63static errno_t usbmid_device_remove(usb_device_t *dev)
    6464{
    6565        assert(dev);
     
    6868
    6969        /* Remove ctl function */
    70         int ret = ddf_fun_unbind(usb_mid->ctl_fun);
     70        errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun);
    7171        if (ret != EOK) {
    7272                usb_log_error("Failed to unbind USB MID ctl function: %s.\n",
     
    8787
    8888                /* Tell the child to go off-line. */
    89                 int pret = ddf_fun_offline(iface->fun);
     89                errno_t pret = ddf_fun_offline(iface->fun);
    9090                if (pret != EOK) {
    9191                        usb_log_warning("Failed to turn off child `%s': %s\n",
     
    110110 * @return Error code.
    111111 */
    112 static int usbmid_device_gone(usb_device_t *dev)
     112static errno_t usbmid_device_gone(usb_device_t *dev)
    113113{
    114114        assert(dev);
     
    119119
    120120        /* Remove ctl function */
    121         int ret = ddf_fun_unbind(usb_mid->ctl_fun);
     121        errno_t ret = ddf_fun_unbind(usb_mid->ctl_fun);
    122122        if (ret != EOK) {
    123123                usb_log_error("Failed to unbind USB MID ctl function: %s.\n",
     
    137137                    ddf_fun_get_name(iface->fun));
    138138
    139                 const int pret = usbmid_interface_destroy(iface);
     139                const errno_t pret = usbmid_interface_destroy(iface);
    140140                if (pret != EOK) {
    141141                        usb_log_error("Failed to remove child `%s': %s\n",
Note: See TracChangeset for help on using the changeset viewer.