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

Changeset 4e9ecf4 in mainline for uspace/lib/usbhost/src/batch.c


Ignore:
Timestamp:
2011-08-31T22:58:04Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
9a790ad1
Parents:
9c10e51
Message:

libusbhost: remove unused elements

File:
1 edited

Legend:

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

    r9c10e51 r4e9ecf4  
    4343    endpoint_t *ep,
    4444    char *buffer,
    45     char *data_buffer,
    4645    size_t buffer_size,
    4746    char *setup_buffer,
     
    5756        usb_transfer_batch_t *instance = malloc(sizeof(usb_transfer_batch_t));
    5857        if (instance) {
    59                 link_initialize(&instance->link);
    6058                instance->ep = ep;
    6159                instance->callback_in = func_in;
     
    6361                instance->arg = arg;
    6462                instance->buffer = buffer;
    65                 instance->data_buffer = data_buffer;
    6663                instance->buffer_size = buffer_size;
    6764                instance->setup_buffer = setup_buffer;
     
    7168                instance->private_data_dtor = private_data_dtor;
    7269                instance->transfered_size = 0;
    73                 instance->next_step = NULL;
    7470                instance->error = EOK;
    7571                if (instance->ep)
     
    113109        assert(instance);
    114110        assert(instance->callback_in);
    115 
    116         /* We are data in, we need data */
    117         if (instance->data_buffer && (instance->buffer != instance->data_buffer))
    118                 memcpy(instance->buffer,
    119                     instance->data_buffer, instance->buffer_size);
    120111
    121112        usb_log_debug2("Batch %p " USB_TRANSFER_BATCH_FMT " completed (%zuB): %s.\n",
Note: See TracChangeset for help on using the changeset viewer.