Changeset eb03e92 in mainline


Ignore:
Timestamp:
2011-01-28T11:59:18Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
987dda8
Parents:
dcc5b9d
Message:

Used get() and dispose() convenience functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/uhci.c

    rdcc5b9d reb03e92  
    213213        CHECK_RET_TRANS_FREE_JOB_TD("Failed to initialize callback structure.\n");
    214214
    215         td = trans_malloc(sizeof(transfer_descriptor_t));
     215        td = transfer_descriptor_get(3, size, false, target, pid);
    216216        ret = td ? EOK : ENOMEM;
    217         CHECK_RET_TRANS_FREE_JOB_TD("Failed to allocate transfer descriptor.\n");
    218 
    219         transfer_descriptor_init(td, 3, size, false, target, pid);
    220 //      CHECK_RET_TRANS_FREE_JOB_TD("Failed to initialize transfer descriptor.\n");
     217        CHECK_RET_TRANS_FREE_JOB_TD("Failed to setup transfer descriptor.\n");
    221218
    222219        td->callback = job;
Note: See TracChangeset for help on using the changeset viewer.