fix:[STM32][drv_can] Suppress unused variable warning in send error path

This commit is contained in:
wdfk-prog
2025-11-20 09:06:46 +08:00
committed by R b b666
parent 4e7a78ee0b
commit 836eecc2f9

View File

@@ -551,6 +551,7 @@ static rt_ssize_t _can_sendmsg(struct rt_can_device *can, const void *buf, rt_ui
if (HAL_IS_BIT_SET(hcan->Instance->TSR, tme_flag) != SET) if (HAL_IS_BIT_SET(hcan->Instance->TSR, tme_flag) != SET)
{ {
RT_UNUSED(mailbox_mask);
return -RT_ERROR; return -RT_ERROR;
} }