commit | 2dbccf065429836bc311a5deef1ba9782725a0f9 | [log] [tgz] |
---|---|---|
author | Johann Fischer <johann.fischer@nordicsemi.no> | Mon Apr 24 15:26:05 2023 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu May 11 15:29:58 2023 +0200 |
tree | 50c0876116b9c1410a2f6665e6a727ddfeb29116 | |
parent | aa5b6db0f4092c823caded44db3d89d7fd5727d3 [diff] |
usb: device_next: do not set alternate 0 for non-existent interfaces A request to set alternate zero for a non-existent interface would succeed because of the inappropriate order of checks. Move the check if the desired alternate is the same as the current one after the check if interface exists. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>