Browse Source
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>pull/85353/head
1 changed files with 2 additions and 3 deletions
Loading…
Reference in new issue