Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8520ac0d authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: replace runtime overflow check



Since commit 0a8fd134 ("USB: fix problems with duplicate endpoint
addresses") USB core guarantees that there are no more than 15 endpoint
descriptors per type (and altsetting) so the corresponding overflow
checks can now be replaced with a compile-time check on the array sizes
(and indirectly the maximum number of ports).

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent ff0c5703
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment