diff --git a/drivers/soc/qcom/qpnp-haptic.c b/drivers/soc/qcom/qpnp-haptic.c index 63c0c49f6ba2..40b39c8ed632 100644 --- a/drivers/soc/qcom/qpnp-haptic.c +++ b/drivers/soc/qcom/qpnp-haptic.c @@ -1505,10 +1505,7 @@ static void update_lra_frequency(struct qpnp_hap *hap) lra_init_freq = 200000/temp; - if ((abs(lra_init_freq-235)*100/235) < 5) { - lra_auto_res_lo = lra_auto_res_lo; - lra_auto_res_hi = lra_auto_res_hi; - } else{ + if ((abs(lra_init_freq-235)*100/235) >= 5) { lra_auto_res_lo = 0x53; lra_auto_res_hi = 0x3; }