When building with clang it warns:
drivers/mfd/mfd_adp5585.c:59:6: error: variable 'reg_int_status' is used
uninitialized whenever 'if' condition is false
[-Werror,-Wsometimes-uninitialized]
if (ret == 0) {
^~~~~~~~
drivers/mfd/mfd_adp5585.c:70:7: note: uninitialized use occurs here
if ((reg_int_status & ADP5585_INT_GPI)
^~~~~~~~~~~~~~ && device_is_ready(data->child.gpio_dev)) {
drivers/mfd/mfd_adp5585.c:59:2: note: remove the 'if' if its condition
is always true
if (ret == 0) {
^~~~~~~~~~~~~~
drivers/mfd/mfd_adp5585.c:54:24: note: initialize the variable
'reg_int_status' to silence this warning
uint8_t reg_int_status;
^
= '\0'
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Kconfig.ad559x | ||
| Kconfig.adp5585 | ||
| Kconfig.aw9523b | ||
| Kconfig.axp192 | ||
| Kconfig.bd8lb600fs | ||
| Kconfig.ds3231 | ||
| Kconfig.it8801 | ||
| Kconfig.lpflexcomm | ||
| Kconfig.max20335 | ||
| Kconfig.max22017 | ||
| Kconfig.max31790 | ||
| Kconfig.nct38xx | ||
| Kconfig.npm1300 | ||
| Kconfig.npm2100 | ||
| Kconfig.npm6001 | ||
| Kconfig.tle9104 | ||
| mfd_ad559x_i2c.c | ||
| mfd_ad559x_spi.c | ||
| mfd_ad559x.c | ||
| mfd_ad559x.h | ||
| mfd_adp5585.c | ||
| mfd_aw9523b.c | ||
| mfd_axp192.c | ||
| mfd_bd8lb600fs.c | ||
| mfd_ds3231.c | ||
| mfd_it8801_altctrl.c | ||
| mfd_ite_it8801.c | ||
| mfd_max20335.c | ||
| mfd_max22017.c | ||
| mfd_max31790.c | ||
| mfd_nct38xx.c | ||
| mfd_npm1300.c | ||
| mfd_npm2100.c | ||
| mfd_npm6001.c | ||
| mfd_nxp_lp_flexcomm.c | ||
| mfd_tle9104.c | ||