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:
Christos Gkekas 2017-10-08 19:20:30 +01:00 committed by Mark Brown
parent 934e4885cb
commit 4c75968a1b

View file

@ -986,7 +986,7 @@ static int cygnus_set_dai_tdm_slot(struct snd_soc_dai *cpu_dai,
active_slots = hweight32(tx_mask);
if ((active_slots < 0) || (active_slots > 16))
if (active_slots > 16)
return -EINVAL;
/* Slot value must be even */