diff --git a/arch/arm/src/sama5/sam_mcan.c b/arch/arm/src/sama5/sam_mcan.c index 7126e033cd..6a65dce1f8 100644 --- a/arch/arm/src/sama5/sam_mcan.c +++ b/arch/arm/src/sama5/sam_mcan.c @@ -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