Changeset 4a00bc9 in mainline for uspace/drv/bus/usb/xhci/endpoint.c


Ignore:
Timestamp:
2018-01-10T13:29:52Z (6 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
398a94c
Parents:
f92f6b1
git-author:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:28:21)
git-committer:
Ondřej Hlavatý <aearsis@…> (2018-01-10 13:29:52)
Message:

xhci: fix errors reported by clang

Asserts were unnecessary, because the transfer type is an enum.
DMAMEM_4GiB is an uintptr_t constant.
There shall be at least one ring segment, and clang cannot infer that.
TRBs shall be 16-byte aligned to take aligned pointers from it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/xhci/endpoint.c

    rf92f6b1 r4a00bc9  
    429429
    430430        usb_transfer_type_t tt = ep->base.transfer_type;
    431         assert(tt < ARRAY_SIZE(setup_ep_ctx_helpers));
    432431
    433432        memset(ep_ctx, 0, sizeof(*ep_ctx));
Note: See TracChangeset for help on using the changeset viewer.