drivers/regulator/pwm-regulator.c:
In function 'pwm_regulator_init_table':
drivers/regulator/pwm-regulator.c:172:14:
warning: 'length' is used uninitialized in this function [-Wuninitialized]
if ((length < sizeof(*duty_cycle_table)) ||
^
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
{
struct device_node *np = pdev->dev.of_node;
struct pwm_voltages *duty_cycle_table;
- int length;
+ int length = 0;
int ret;
of_find_property(np, "voltage-table", &length);