commit | 46c507ee00c76c6fb3cb39cc9944c4e97059d50e | [log] [tgz] |
---|---|---|
author | Yannic Moog <y.moog@phytec.de> | Wed Dec 20 09:45:36 2023 +0100 |
committer | Fabio Estevam <festevam@denx.de> | Wed Dec 20 15:04:46 2023 -0300 |
tree | 9a7fa6393aed7fd1ef0299f208879654bfa98d85 | |
parent | 5dd7f7c9ba14c1db9e46eb589f42067891593922 [diff] |
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: Yannic Moog <y.moog@phytec.de>