Skip to content

Commit ddf275b

Browse files
Colin Ian Kingbroonie
authored andcommitted
regulator: bd9576: Fix uninitializes variable may_have_irqs
The boolean variable may_have_irqs is not ininitialized and is only being set to true in the case where chip is ROHM_CHIP_TYPE_BD9576. Fix this by ininitialized may_have_irqs to false. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: e7bf1fa ("regulator: bd9576: Support error reporting") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 1aeb1a7 commit ddf275b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/bd9576-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ static int bd957x_probe(struct platform_device *pdev)
897897
{
898898
int i;
899899
unsigned int num_reg_data;
900-
bool vout_mode, ddr_sel, may_have_irqs;
900+
bool vout_mode, ddr_sel, may_have_irqs = false;
901901
struct regmap *regmap;
902902
struct bd957x_data *ic_data;
903903
struct regulator_config config = { 0 };

0 commit comments

Comments
 (0)