Changeset 01086cfe in mainline


Ignore:
Timestamp:
2011-12-14T19:00:14Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d6d15ec
Parents:
94bfc84
Message:

libusbdev: Remove useless checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/pipes.c

    r94bfc84 r01086cfe  
    118118        }
    119119
    120         /* Isochronous transfer are not supported (yet) */
    121         if (pipe->transfer_type != USB_TRANSFER_INTERRUPT &&
    122             pipe->transfer_type != USB_TRANSFER_BULK &&
    123             pipe->transfer_type != USB_TRANSFER_CONTROL)
    124             return ENOTSUP;
    125 
    126120        uint64_t setup_packet;
    127121        memcpy(&setup_packet, setup_buffer, 8);
     
    176170        }
    177171
    178         /* Isochronous transfer are not supported (yet) */
    179         if (pipe->transfer_type != USB_TRANSFER_INTERRUPT &&
    180             pipe->transfer_type != USB_TRANSFER_BULK &&
    181             pipe->transfer_type != USB_TRANSFER_CONTROL)
    182             return ENOTSUP;
    183 
    184172        uint64_t setup_packet;
    185173        memcpy(&setup_packet, setup_buffer, 8);
     
    226214        /* Isochronous transfer are not supported (yet) */
    227215        if (pipe->transfer_type != USB_TRANSFER_INTERRUPT &&
    228             pipe->transfer_type != USB_TRANSFER_BULK &&
    229             pipe->transfer_type != USB_TRANSFER_CONTROL)
     216            pipe->transfer_type != USB_TRANSFER_BULK)
    230217            return ENOTSUP;
    231218
     
    266253        /* Isochronous transfer are not supported (yet) */
    267254        if (pipe->transfer_type != USB_TRANSFER_INTERRUPT &&
    268             pipe->transfer_type != USB_TRANSFER_BULK &&
    269             pipe->transfer_type != USB_TRANSFER_CONTROL)
     255            pipe->transfer_type != USB_TRANSFER_BULK)
    270256            return ENOTSUP;
    271257
Note: See TracChangeset for help on using the changeset viewer.