Skip to content
Commit f386967b authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Carles Cufí
Browse files

settings: do not panic on backend initialization errors



There is little reason to panic on settings backend initialization error.
Such behavior was introduced with initial settings subsystem support, which
was adapted from MyNewt. This is not the usual way how Zephyr handles
errors, so it is time to change that.

There is already handling of some errors by simply returning / propagating
them to caller. Rework all the paths that resulted in k_panic() to also
return error codes.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@emb.dev>
parent fed6bde7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment