Skip to content
Commit b1f42f2e authored by Jeremy Bettis's avatar Jeremy Bettis Committed by Mahesh Mahadevan
Browse files

drivers: Fix uninitialized variable warning.



In GCC 14.2.0, the keyvariable in usb_dc_ep_write is detected to be used
before initialization, even though this usage should be safe.

Fix by initializing the key variable to 0, and making the 2 if
statements explicitly checking the same value.

Signed-off-by: default avatarJeremy Bettis <jbettis@google.com>
parent 135214d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment