commit | e551dbd2430d8060a90995b682b3d5c7c18f0524 | [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 | ce750f168fa4108634e7c4de99face2a2717d3db [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>