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


Ignore:
Timestamp:
2018-01-11T04:12:06Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0892663a
Parents:
a6c4597
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-11 01:31:42)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-11 04:12:06)
Message:

usbhost: made device_remove and endpoint_unregister noexcept

File:
1 edited

Legend:

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

    ra6c4597 rbad4a05  
    193193}
    194194
    195 static int endpoint_unregister(endpoint_t *);
    196 
    197195/**
    198196 * Remove device from XHCI bus. Transition it to the offline state, abort all
     
    205203 * @return Error code.
    206204 */
    207 static int device_remove(device_t *dev)
     205static void device_remove(device_t *dev)
    208206{
    209207        int err;
     
    249247                        continue;
    250248
    251                 if ((err = endpoint_unregister(dev->endpoints[i]))) {
    252                         usb_log_warning("Failed to unregister endpoint " XHCI_EP_FMT ": %s",
    253                             XHCI_EP_ARGS(*xhci_device_get_endpoint(xhci_dev, i)), str_error(err));
    254                 }
     249                bus_endpoint_remove(dev->endpoints[i]);
    255250        }
    256251
     
    258253        /* XXX: Not a good idea, this method should not destroy devices. */
    259254        hcd_ddf_fun_destroy(dev);
    260 
    261         return EOK;
    262255}
    263256
     
    415408 * Bus callback.
    416409 */
    417 static int endpoint_unregister(endpoint_t *ep_base)
     410static void endpoint_unregister(endpoint_t *ep_base)
    418411{
    419412        int err;
     
    433426                    " the slot has already been disabled.", XHCI_EP_ARGS(*ep));
    434427        }
    435 
    436         return EOK;
    437428}
    438429
Note: See TracChangeset for help on using the changeset viewer.