Changeset 5d915b7 in mainline for uspace/drv/bus/usb/uhci/uhci_batch.c


Ignore:
Timestamp:
2011-09-14T14:25:07Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e3d17f
Parents:
1e647c7d
Message:

uhci: Minor tweaks and comment fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/uhci_batch.c

    r1e647c7d r5d915b7  
    134134        memcpy(dest, usb_batch->setup_buffer, usb_batch->setup_size);
    135135        dest += usb_batch->setup_size;
    136         /* Copy generic data if unless they are provided by the device */
     136        /* Copy generic data unless they are provided by the device */
    137137        if (usb_batch->ep->direction != USB_DIRECTION_IN) {
    138138                memcpy(dest, usb_batch->buffer, usb_batch->buffer_size);
     
    142142            " memory structures ready.\n", usb_batch,
    143143            USB_TRANSFER_BATCH_ARGS(*usb_batch));
     144
    144145        assert(
    145146            batch_setup[usb_batch->ep->transfer_type][usb_batch->ep->direction]);
     
    215216        assert(uhci_batch);
    216217        assert(uhci_batch->usb_batch);
     218        assert(uhci_batch->usb_batch->ep);
     219        assert(uhci_batch->usb_batch->ep->direction == USB_DIRECTION_OUT ||
     220            uhci_batch->usb_batch->ep->direction == USB_DIRECTION_IN);
     221
    217222        static const usb_packet_id pids[] = {
    218223                [USB_DIRECTION_IN] = USB_PID_IN,
    219224                [USB_DIRECTION_OUT] = USB_PID_OUT,
    220225        };
    221         assert(uhci_batch->usb_batch->ep->direction == USB_DIRECTION_OUT ||
    222             uhci_batch->usb_batch->ep->direction == USB_DIRECTION_IN);
    223226
    224227        const usb_packet_id pid = pids[uhci_batch->usb_batch->ep->direction];
Note: See TracChangeset for help on using the changeset viewer.