mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
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:
parent
2aaa41cf97
commit
acc414eda8
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user