commit | ce750f168fa4108634e7c4de99face2a2717d3db | [log] [tgz] |
---|---|---|
author | Boyan Karatotev <boyan.karatotev@arm.com> | Thu May 15 09:57:58 2025 +0100 |
committer | Boyan Karatotev <boyan.karatotev@arm.com> | Thu May 15 10:39:16 2025 +0100 |
tree | 978a939966ee19ffdea0fd37859727a1f4106554 | |
parent | e242e1de256e8581fad8aec3b4f082ee8ce3457d [diff] |
fix(allwinner): fix variable may be used uninitialized error When building with LTO, the compiler observes that i2c_read() can return without writing val, declaring the variable may be used unnitialized. However, there is a sufficient error check that will prevent an actual use. So calm the compiler by giving a safe default. Change-Id: I558618467ae324a6b5b495ec9d204935135f226d Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>