SAMV7: MCAN: fix missing unlock of device in mcan_txempty
This commit is contained in:
parent
2f974ffeaf
commit
90ccba1ad0
|
@ -2905,6 +2905,7 @@ static bool mcan_txempty(FAR struct can_dev_s *dev)
|
|||
regval = mcan_getreg(priv, SAM_MCAN_TXFQS_OFFSET);
|
||||
if (((regval & MCAN_TXFQS_TFQF) != 0))
|
||||
{
|
||||
mcan_dev_unlock(priv);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue