Changeset 45457265 in mainline for uspace/drv/bus/usb/xhci/rh.c


Ignore:
Timestamp:
2018-02-03T02:14:26Z (6 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb862fd
Parents:
961a5ee
Message:

errno_t all the things!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/rh.c

    r961a5ee r45457265  
    7979 * Initialize the roothub subsystem.
    8080 */
    81 int xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc)
     81errno_t xhci_rh_init(xhci_rh_t *rh, xhci_hc_t *hc)
    8282{
    8383        assert(rh);
     
    9090                return ENOMEM;
    9191
    92         const int err = bus_device_init(&rh->device.base, &rh->hc->bus.base);
     92        const errno_t err = bus_device_init(&rh->device.base, &rh->hc->bus.base);
    9393        if (err) {
    9494                free(rh->ports);
     
    119119 * Finalize the RH subsystem.
    120120 */
    121 int xhci_rh_fini(xhci_rh_t *rh)
     121errno_t xhci_rh_fini(xhci_rh_t *rh)
    122122{
    123123        assert(rh);
     
    139139 * a virtual usbhub device for RH, this routine is called for devices directly.
    140140 */
    141 static int rh_enumerate_device(usb_port_t *usb_port)
    142 {
    143         int err;
     141static errno_t rh_enumerate_device(usb_port_t *usb_port)
     142{
     143        errno_t err;
    144144        rh_port_t *port = get_rh_port(usb_port);
    145145
Note: See TracChangeset for help on using the changeset viewer.