Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 45c4f5a in mainline


Ignore:
Timestamp:
2011-01-28T12:20:26Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
de0e6b3
Parents:
987dda8
Message:

Used callback_get() and dispose convenience functions

File:
1 edited

Legend:

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

    r987dda8 r45c4f5a  
    198198                uhci_print_error(message); \
    199199                if (job) { \
    200                         callback_fini(job); \
    201                         trans_free(job); \
     200                        callback_dispose(job); \
    202201                } \
    203202                if (td) { trans_free(td); } \
     
    206205
    207206
    208         job = malloc(sizeof(callback_t));
    209         ret= job ? EOK : ENOMEM;
     207        job = callback_get(dev, buffer, size, callback_in, callback_out, arg);
     208        ret = job ? EOK : ENOMEM;
    210209        CHECK_RET_TRANS_FREE_JOB_TD("Failed to allocate callback structure.\n");
    211 
    212         ret = callback_init(job, dev, buffer, size, callback_in, callback_out, arg);
    213         CHECK_RET_TRANS_FREE_JOB_TD("Failed to initialize callback structure.\n");
    214210
    215211        td = transfer_descriptor_get(3, size, false, target, pid);
Note: See TracChangeset for help on using the changeset viewer.