Skip to content
Commit bb6cb0f1 authored by Jordan Yates's avatar Jordan Yates Committed by Benjamin Cabé
Browse files

lorawan: clock_sync: assert instead of error code



Assert that the size provided to `clock_sync_serialize_device_time` is
sufficient, instead of returning an error code. The condition is already
enforced by the calling code, and returning an error code is incorrect
when the return code is unconditionally being used to increment the
buffer offset by callers.

Fixes #84720.

Signed-off-by: default avatarJordan Yates <jordan@embeint.com>
parent 1d8ef88b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment