commit | 5b940ec3ee0319d8c06b4522d038d665eb06f892 | [log] [tgz] |
---|---|---|
author | Boyan Karatotev <boyan.karatotev@arm.com> | Thu May 15 10:00:54 2025 +0100 |
committer | Boyan Karatotev <boyan.karatotev@arm.com> | Tue May 27 11:53:08 2025 +0100 |
tree | 020c87e19d2c185694774b42c44b2412261e419b | |
parent | 1e722d5af19bdded352dce77829583428b99fd83 [diff] |
fix(imx8ulp): fix variable may be used uninitialized error When building with LTO, the compiler discovers that it is possible to use the `volt` variable without writing to it. This happens when upower_pmic_i2c_read() returns error. Check its return value and panic() if something went wrong so the error doesn't propagate silently. Change-Id: I46d460892a2eb24596373ad7a5b07f730a0753de Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>