Files
u-boot/drivers
Andrew Goodbody aa136393c8 power: power_i2c: ret is uninitialised if not DM_I2C
In pmic_reg_read ret is only assigned to inside #if
CONFIG_IS_ENABLED(DM_I2C) so move the test and return ret inside as well
and also guard the declaration of ret with CONFIG_IS_ENABLED(DM_I2C) to
prevent a warning about an unused variable.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
2025-08-29 16:44:46 -06:00
..
2025-07-10 08:41:03 -06:00
2025-04-11 12:16:44 -06:00
2025-05-03 16:55:32 -03:00
2025-07-22 11:30:14 -06:00
2025-06-02 17:26:16 -06:00
2025-08-06 08:41:30 +02:00
2025-04-11 12:16:44 -06:00
2025-04-11 12:16:44 -06:00
2025-08-06 16:52:27 +02:00
2025-07-29 16:44:58 +02:00
2025-07-30 14:55:17 +02:00
2025-06-25 13:42:04 -06:00
2024-04-26 08:28:35 +03:00
2025-04-11 12:16:44 -06:00