Changeset d1df381 in mainline for uspace/lib/usbhost/src/ddf_helpers.c


Ignore:
Timestamp:
2013-12-31T23:20:40Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7813516
Parents:
ba4a03a5
Message:

libusbhost: Make ddf interrupt helper return the used irq.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    rba4a03a5 rd1df381  
    725725        irq_code_t irq_code = {0};
    726726
    727         int irq = gen_irq_code(&irq_code, hw_res);
     727        const int irq = gen_irq_code(&irq_code, hw_res);
    728728        if (irq < 0) {
    729729                usb_log_error("Failed to generate IRQ code: %s.\n",
     
    749749                return ret;
    750750        }
    751 
    752         return EOK;
     751        assert(irq > 0);
     752        return irq;
    753753}
    754754/**
Note: See TracChangeset for help on using the changeset viewer.