mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue