diff --git i/drivers/thermal/qcom/tsens-common.c w/drivers/thermal/qcom/tsens-common.c index 03bf1b8133eac..4359a4247ac31 100644 --- i/drivers/thermal/qcom/tsens-common.c +++ w/drivers/thermal/qcom/tsens-common.c @@ -180,7 +180,7 @@ static inline enum tsens_ver tsens_version(struct tsens_priv *priv) static void tsens_set_interrupt_v1(struct tsens_priv *priv, u32 hw_id, enum tsens_irq_type irq_type, bool enable) { - u32 index; + u32 index = 0; switch (irq_type) { case UPPER: @@ -196,7 +196,7 @@ static void tsens_set_interrupt_v1(struct tsens_priv *priv, u32 hw_id, static void tsens_set_interrupt_v2(struct tsens_priv *priv, u32 hw_id, enum tsens_irq_type irq_type, bool enable) { - u32 index_mask, index_clear; + u32 index_mask = 0, index_clear = 0; /* * To enable the interrupt flag for a sensor: