Commit 4c75968a authored by Christos Gkekas's avatar Christos Gkekas Committed by Mark Brown

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: default avatarChristos Gkekas <chris.gekas@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 934e4885
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment