Changeset d527a4e in mainline


Ignore:
Timestamp:
2011-04-02T16:23:47Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4d946647
Parents:
0053fa38
Message:

Fix bw manager return value

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/hc.c

    r0053fa38 rd527a4e  
    241241        ret = bandwidth_init(&instance->bandwidth, BANDWIDTH_AVAILABLE_USB11,
    242242            bandwidth_count_usb11);
    243         assert(ret == true);
     243        assert(ret == EOK);
    244244
    245245        return EOK;
  • uspace/lib/usb/src/host/bandwidth.c

    r0053fa38 rd527a4e  
    127127        instance->free = bandwidth;
    128128        instance->usage_fnc = usage_fnc;
    129         return
     129        bool ht =
    130130            hash_table_create(&instance->reserved, BUCKET_COUNT, MAX_KEYS, &op);
     131        return ht ? EOK : ENOMEM;
    131132}
    132133/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.