ASoC: codecs: ES8389: Remove redundant comparison

The comparison (target_hz < 0) will always be false because the variable
'target_hz' is of the u32 type.

Remove redundant comparison and simply code around it.

Fixes: 87592da1a4 ("ASoC: codecs: ES8389: Add private members about HPF")
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Link: https://patch.msgid.link/20260719221502.536804-1-ethantidmore06@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Ethan Tidmore 2026-07-19 17:15:02 -05:00 committed by Mark Brown
parent 2aaa41cf97
commit acc414eda8
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -106,7 +106,7 @@ static bool find_best_hpf_freq(u32 target_hz, u8 *hpf1, u8 *hpf2, u32 *out)
u32 f, diff;
int i, j;
if ((target_hz > 1020) | (target_hz < 0))
if (target_hz > 1020)
return false;
for (i = 0; i < 10; i++) {