Commit 4ed641c
committed
[nrf fromtree] 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ń <[email protected]>
(cherry picked from commit 2aa26ad)1 parent c135c2f commit 4ed641c
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3026 | 3026 | | |
3027 | 3027 | | |
3028 | 3028 | | |
3029 | | - | |
3030 | | - | |
| 3029 | + | |
3031 | 3030 | | |
3032 | 3031 | | |
3033 | 3032 | | |
| |||
3049 | 3048 | | |
3050 | 3049 | | |
3051 | 3050 | | |
3052 | | - | |
3053 | | - | |
| 3051 | + | |
3054 | 3052 | | |
3055 | 3053 | | |
3056 | 3054 | | |
| |||
0 commit comments