Skip to content
Unverified Commit ddf275b2 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

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: e7bf1fa5 ("regulator: bd9576: Support error reporting")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/20210622144730.22821-1-colin.king@canonical.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1aeb1a72
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment