soc: qcom: qpnp-haptic_oem: Fix self assign Clang warnings

As pointed out by Josh in the comments of 60e5a5f0b974, this seems
like an addition that just isn't necessary. Self assign shouldn't
be necessary here so we'll just reverse the condition and eliminate
the self assignment.

Reviewed-by: joshuous <joshuous@gmail.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
This commit is contained in:
Nathan Chancellor 2017-12-03 19:13:02 -07:00 committed by Timi
parent 4d2289554a
commit bb336fb77e

View file

@ -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;
}