ASoC: cygnus: Remove unnecessary active_slots check
Variable active_slots is unsigned so checking whether it is less than zero is not necessary. Signed-off-by: Christos Gkekas <chris.gekas@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
934e4885cb
commit
4c75968a1b
|
@ -986,7 +986,7 @@ static int cygnus_set_dai_tdm_slot(struct snd_soc_dai *cpu_dai,
|
||||||
|
|
||||||
active_slots = hweight32(tx_mask);
|
active_slots = hweight32(tx_mask);
|
||||||
|
|
||||||
if ((active_slots < 0) || (active_slots > 16))
|
if (active_slots > 16)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
/* Slot value must be even */
|
/* Slot value must be even */
|
||||||
|
|
Loading…
Reference in New Issue