commit | 1e722d5af19bdded352dce77829583428b99fd83 | [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 | b782893795568d321c20e7e27a193e42ad4da876 [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>