Skip to content
Commit e2449ee9 authored by Yannic Moog's avatar Yannic Moog Committed by Fabio Estevam
Browse files

board: phytec: phytec_som_detection: fix uninitialized bug



When som_type does not match any case, it is uninitialized and the
function still tries to print the SoM info. Rather, this is an error
condition and the function should abort prematurely. Highlight this by
printing an error message and returning early.

Signed-off-by: default avatarYannic Moog <y.moog@phytec.de>
parent aa7858fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment