Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a821f05 in mainline


Ignore:
Timestamp:
2018-02-03T10:38:19Z (4 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial
Children:
aa148b3
Parents:
860bf94
Message:

usbmid: refactor to errno_t

Location:
uspace/drv/bus/usb/usbmid
Files:
2 edited

Legend:

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

    r860bf94 ra821f05  
    5656}
    5757
    58 static int destroy_interfaces(usb_mid_t *usb_mid)
     58static errno_t destroy_interfaces(usb_mid_t *usb_mid)
    5959{
    60         int ret = EOK;
     60        errno_t ret = EOK;
    6161
    6262        while (!list_empty(&usb_mid->interface_list)) {
     
    6666                usbmid_interface_t *iface = usbmid_interface_from_link(item);
    6767
    68                 const int pret = usbmid_interface_destroy(iface);
     68                const errno_t pret = usbmid_interface_destroy(iface);
    6969                if (pret != EOK) {
    7070                        usb_log_error("Failed to remove child `%s': %s",
     
    139139}
    140140
    141 static int usbmid_function_online(ddf_fun_t *fun)
     141static errno_t usbmid_function_online(ddf_fun_t *fun)
    142142{
    143143        usb_device_t *usb_dev = ddf_dev_data_get(ddf_fun_get_dev(fun));
  • uspace/drv/bus/usb/usbmid/usbmid.c

    r860bf94 ra821f05  
    120120         * class name something humanly understandable.
    121121         */
    122         int ret = asprintf(&child_name, "%s%hhu",
     122        errno_t ret = asprintf(&child_name, "%s%hhu",
    123123            usb_str_class(interface_descriptor->interface_class),
    124124            interface_descriptor->interface_number);
Note: See TracChangeset for help on using the changeset viewer.