SAMA5 sam_mcan.c unitialized variable

This commit is contained in:
Tim Hardisty 2024-09-23 11:41:08 +01:00 committed by Alan C. Assis
parent b025c6285d
commit 5a4d31f315

View file

@ -1425,7 +1425,7 @@ static void mcan_buffer_reserve(struct sam_mcan_s *priv)
int tffl;
#endif
int sval;
int ret;
int ret = 0;
/* Wait until we successfully get the semaphore. EINTR is the only
* expected 'failure' (meaning that the wait for the semaphore was