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:
parent
4d2289554a
commit
bb336fb77e
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue