drivers: can: mcan: fix off-by-one error in assert
Fix off-by-one error in assert Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
parent
08d19954b9
commit
cff1496166
1 changed files with 1 additions and 1 deletions
|
@ -924,7 +924,7 @@ int can_mcan_send(const struct device *dev, const struct can_frame *frame, k_tim
|
||||||
goto err_unlock;
|
goto err_unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
__ASSERT_NO_MSG(put_idx <= cbs->num_tx);
|
__ASSERT_NO_MSG(put_idx < cbs->num_tx);
|
||||||
cbs->tx[put_idx].function = callback;
|
cbs->tx[put_idx].function = callback;
|
||||||
cbs->tx[put_idx].user_data = user_data;
|
cbs->tx[put_idx].user_data = user_data;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue