commit | 2aa26ad2615297c3c69649cfd89b345838413c75 | [log] [tgz] |
---|---|---|
author | Tomasz Moń <tomasz.mon@nordicsemi.no> | Thu Mar 20 11:00:12 2025 +0100 |
committer | Benjamin Cabé <kartben@gmail.com> | Mon Mar 24 15:10:25 2025 +0100 |
tree | 57ceb7f5241ee75b83b83ecf5268ff276e7b27a5 | |
parent | 2395452656099afee86d642c063b582df6b0d6c9 [diff] |
drivers: udc_dwc2: Optimize endpoint event clear There is no point in calling k_event_test() to determine what events are posted and then passing that value to k_event_clear(). Simply pass UINT32_MAX to k_event_clear() and use the return value to slightly reduce overhead. Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>