Changeset 1ecc5de in mainline for uspace/drv/bus/usb/ohci/ohci.c


Ignore:
Timestamp:
2011-07-10T20:43:22Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2e8a01b
Parents:
2bc7122
Message:

OHCI: Create a new way to generate IRQ code

Replace asserts with runtime check.

File:
1 edited

Legend:

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

    r2bc7122 r1ecc5de  
    5858{
    5959        assert(dev);
    60         assert(dev->driver_data);
    6160        return dev->driver_data;
    6261}
    63 
    6462/** IRQ handling callback, identifies device
    6563 *
     
    7169{
    7270        hc_t *hc = &dev_to_ohci(dev)->hc;
    73         assert(hc);
     71        if (!hc) {
     72                usb_log_warning("IRQ on device that is not ready.\n");
     73                return;
     74        }
    7475        const uint16_t status = IPC_GET_ARG1(*call);
    7576        hc_interrupt(hc, status);
Note: See TracChangeset for help on using the changeset viewer.